Fix a bug where the window would not be shaped properly when dragging a new tab out.  It would sometimes not be shaped properly when opening a new window.
Fix a bug where the window would not be shaped properly when
dragging a new tab out.  It would sometimes not be shaped properly
when opening a new window.

The code to update the window frame looks to see if the window is
maximized.  state_ contains information as to whether or not
we're maximized, but it wasn't set yet resulting in a UMR.

Review URL: http://codereview.chromium.org/131079


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

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