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.
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

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

junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,ltilve/chromium,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,jaruba/chromium.src,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,dednal/chromium.src,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,robclark/chromium,keishi/chromium,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,patrickm/chromium.src,hujiajie/pa-chromium,patrickm/chromium.src,nacl-webkit/chrome_deps,Chilledheart/chromium,jaruba/chromium.src,bright-sparks/chromium-spacewalk,littlstar/chromium.src,Just-D/chromium-1,littlstar/chromium.src,dednal/chromium.src,Chilledheart/chromium,fujunwei/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,ondra-novak/chromium.src,Jonekee/chromium.src,ltilve/chromium,rogerwang/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,robclark/chromium,rogerwang/chromium,robclark/chromium,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,robclark/chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,ltilve/chromium,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,Just-D/chromium-1,anirudhSK/chromium,littlstar/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,dednal/chromium.src,rogerwang/chromium,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,robclark/chromium,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,chuan9/chromium-crosswalk,Just-D/chromium-1,hujiajie/pa-chromium,ChromiumWebApps/chromium,littlstar/chromium.src,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,jaruba/chromium.src,dednal/chromium.src,robclark/chromium,axinging/chromium-crosswalk,anirudhSK/chromium,anirudhSK/chromium,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,keishi/chromium,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,hujiajie/pa-chromium,ondra-novak/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,ondra-novak/chromium.src,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,rogerwang/chromium,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,Just-D/chromium-1,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,jaruba/chromium.src,hgl888/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,markYoungH/chromium.src,ltilve/chromium,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,anirudhSK/chromium,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,rogerwang/chromium,Fireblend/chromium-crosswalk,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,rogerwang/chromium,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,patrickm/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,bright-sparks/chromium-spacewalk,rogerwang/chromium,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,anirudhSK/chromium,anirudhSK/chromium,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,dushu1203/chromium.src,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,jaruba/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,M4sse/chromium.src,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,ltilve/chromium,hujiajie/pa-chromium,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,hujiajie/pa-chromium,ltilve/chromium,ltilve/chromium,robclark/chromium,krieger-od/nwjs_chromium.src,keishi/chromium,keishi/chromium,ltilve/chromium,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,Chilledheart/chromium,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,ondra-novak/chromium.src,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,ChromiumWebApps/chromium,jaruba/chromium.src,robclark/chromium,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,jaruba/chromium.src,anirudhSK/chromium,littlstar/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,ltilve/chromium,axinging/chromium-crosswalk,Just-D/chromium-1,dednal/chromium.src,hgl888/chromium-crosswalk-efl,keishi/chromium,anirudhSK/chromium,mogoweb/chromium-crosswalk,Just-D/chromium-1,rogerwang/chromium,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,nacl-webkit/chrome_deps,dednal/chromium.src,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,Just-D/chromium-1,krieger-od/nwjs_chromium.src,M4sse/chromium.src,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,keishi/chromium,littlstar/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,keishi/chromium,ondra-novak/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,Jonekee/chromium.src,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,keishi/chromium,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,keishi/chromium,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,robclark/chromium,bright-sparks/chromium-spacewalk,keishi/chromium,patrickm/chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,markYoungH/chromium.src,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,jaruba/chromium.src,patrickm/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,dushu1203/chromium.src,hgl888/chromium-crosswalk