| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index d32c41d558d4a11e4375d79addbd1b8331dd0ba3..e5ee0cfc3ae607054efc2437abbda88c43ac6914 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -922,7 +922,7 @@
|
| }
|
|
|
| #if defined(USE_AURA)
|
| - env_.reset();
|
| + aura::Env::DeleteInstance();
|
| #endif
|
|
|
| trace_memory_controller_.reset();
|
| @@ -1141,7 +1141,9 @@
|
| BrowserGpuChannelHostFactory::Initialize(established_gpu_channel);
|
| ImageTransportFactory::Initialize();
|
| #if defined(USE_AURA)
|
| - env_->set_context_factory(GetContextFactory());
|
| + if (aura::Env::GetInstance()) {
|
| + aura::Env::GetInstance()->set_context_factory(GetContextFactory());
|
| + }
|
| #endif // defined(USE_AURA)
|
| #endif // defined(OS_ANDROID)
|
|
|
| @@ -1286,7 +1288,7 @@
|
|
|
| // Env creates the compositor. Aura widgets need the compositor to be created
|
| // before they can be initialized by the browser.
|
| - env_ = aura::Env::CreateInstance();
|
| + aura::Env::CreateInstance(true);
|
| #endif // defined(USE_AURA)
|
|
|
| if (parts_)
|
|
|