Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: content/browser/browser_main_loop.cc

Issue 2664963002: mus: Make --use-mus-in-renderer the default for --mash. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | content/public/common/content_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698