Relanding this with the compile fixes for Linux views
Relanding this with the compile fixes for Linux views

Revert 92074 - Revert 92071 - Fix a chrome browser crash which occurs when displaying the page info bubble in a ChromeFrame page.
The crash occurs while dereferencing a NULL NonClientView member in the widget code. This member
is only instantiated if the widget is of type InitParams::TYPE_WINDOW.

ChromeFrame always instantiates as a popup window and hence this member is always NULL.

Fix is to add a NULL check at the relevant places in the widget code.

Fixes bug http://code.google.com/p/chromium/issues/detail?id=88960

BUG=88960
Review URL: http://codereview.chromium.org/7301028

TBR=ananta@chromium.org
Review URL: http://codereview.chromium.org/7258008

TBR=ananta@chromium.org
Review URL: http://codereview.chromium.org/7340007

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@92078 0039d316-1c4b-4281-b951-d872f2087c98

gavinp/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium