Chromium Code Reviews| Index: content/browser/browser_main_loop.cc |
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
| index e12d29d529596fe103cd99b25832a27db96f2475..05331b9c9924ee48e253818d01cf77cd215d8df1 100644 |
| --- a/content/browser/browser_main_loop.cc |
| +++ b/content/browser/browser_main_loop.cc |
| @@ -1466,12 +1466,12 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
| ImageTransportFactory::Initialize(); |
| ImageTransportFactory::GetInstance()->SetGpuChannelEstablishFactory(factory); |
| #if defined(USE_AURA) |
| - bool use_mus_in_renderer = base::CommandLine::ForCurrentProcess()->HasSwitch( |
| - switches::kUseMusInRenderer); |
| - if (aura::Env::GetInstance() && !use_mus_in_renderer) { |
| - aura::Env::GetInstance()->set_context_factory(GetContextFactory()); |
| - aura::Env::GetInstance()->set_context_factory_private( |
| - GetContextFactoryPrivate()); |
| + bool use_mus_in_renderer = !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| + switches::kNoUseMusInRenderer); |
| + if (env_.get() && |
|
sky
2017/01/31 04:17:30
env_.get() -> env_.
Also, Env::GetInstance() reall
sadrul
2017/01/31 15:45:13
I don't think so. I have removed this check.
|
| + (!use_mus_in_renderer || env_->mode() == aura::Env::Mode::LOCAL)) { |
| + env_->set_context_factory(GetContextFactory()); |
| + env_->set_context_factory_private(GetContextFactoryPrivate()); |
| } |
| #endif // defined(USE_AURA) |
| #endif // defined(OS_ANDROID) |