Revert 248280 "Fix a crash in content-shell headless mode with -..."
Revert 248280 "Fix a crash in content-shell headless mode with -..."

Speculative revert to fix a flaky crash in Blink layout tests:

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20Blink&showExpectations=true&tests=fast%2Fforms%2Fimplicit-submission.html


> Fix a crash in content-shell headless mode with --dump-render-tree
> 
> Currently the platform specific state is not cleanedup in headless
> mode and that leads to a crash upon content-shell exit.
> 
> This patch deinitialize the platform specific state in Shell
> destructor so that it will delete the aura::WindowTreeHost which
> will delete the compositor.
> 
> BUG=338919
> 
> Review URL: https://codereview.chromium.org/149593002

TBR=sudarsana.nagineni@intel.com

Review URL: https://codereview.chromium.org/134773007

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

PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,dednal/chromium.src,Chilledheart/chromium,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,markYoungH/chromium.src,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,ChromiumWebApps/chromium,Chilledheart/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,krieger-od/nwjs_chromium.src,anirudhSK/chromium,anirudhSK/chromium,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,jaruba/chromium.src,littlstar/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,ltilve/chromium,Fireblend/chromium-crosswalk,Chilledheart/chromium,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,markYoungH/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,Just-D/chromium-1,littlstar/chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,ltilve/chromium,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,anirudhSK/chromium,jaruba/chromium.src,M4sse/chromium.src,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,M4sse/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,ltilve/chromium,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,ChromiumWebApps/chromium,M4sse/chromium.src,dednal/chromium.src,patrickm/chromium.src,markYoungH/chromium.src,dednal/chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,Just-D/chromium-1,dednal/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,Just-D/chromium-1,jaruba/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,Just-D/chromium-1,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,patrickm/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,dednal/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,dushu1203/chromium.src,ltilve/chromium,hgl888/chromium-crosswalk,Just-D/chromium-1,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,ondra-novak/chromium.src,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,ltilve/chromium,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,ondra-novak/chromium.src,littlstar/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,ltilve/chromium,littlstar/chromium.src,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,ondra-novak/chromium.src,dushu1203/chromium.src,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,Fireblend/chromium-crosswalk,Chilledheart/chromium,fujunwei/chromium-crosswalk,Jonekee/chromium.src,patrickm/chromium.src,markYoungH/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,ltilve/chromium,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,littlstar/chromium.src,M4sse/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,dushu1203/chromium.src,patrickm/chromium.src,anirudhSK/chromium,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,ltilve/chromium,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,jaruba/chromium.src