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

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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..752d0afdc1c08322d39fe950d57a6dd181bec624 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1466,12 +1466,11 @@ 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 (!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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698