summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 17:42:00 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 17:42:00 +0000
commitda5f8416ed613f5ad51a70eaae20f11562db0a3e (patch)
treeb76ccc782591596e274af27de5f4799155285fac /content/shell
parent1c0076f9238ac07ab03c4ed5a91d64d1e6086a20 (diff)
downloadchromium_src-da5f8416ed613f5ad51a70eaae20f11562db0a3e.zip
chromium_src-da5f8416ed613f5ad51a70eaae20f11562db0a3e.tar.gz
chromium_src-da5f8416ed613f5ad51a70eaae20f11562db0a3e.tar.bz2
aura: Initialize Env as early as possible.
Initialize the aura environment as part of initializing the toolkit in BrowserMainLoop::InitializeToolkit. Change all the other places that tries to initialize aura::Env to instead assert that aura::Env has already been initialized. With this change, the initialization of aura::Env happens in the same place on all aura platforms. BUG=365947 R=jochen@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/248503003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/browser/shell_platform_data_aura.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/shell/browser/shell_platform_data_aura.cc b/content/shell/browser/shell_platform_data_aura.cc
index fdbf634..0a63279 100644
--- a/content/shell/browser/shell_platform_data_aura.cc
+++ b/content/shell/browser/shell_platform_data_aura.cc
@@ -113,7 +113,7 @@ class MinimalInputEventFilter : public ui::internal::InputMethodDelegate,
ShellPlatformDataAura* Shell::platform_ = NULL;
ShellPlatformDataAura::ShellPlatformDataAura(const gfx::Size& initial_size) {
- aura::Env::CreateInstance();
+ CHECK(aura::Env::GetInstance());
host_.reset(aura::WindowTreeHost::Create(gfx::Rect(initial_size)));
host_->InitHost();
host_->window()->SetLayoutManager(new FillLayout(host_->window()));