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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2208613002: Remove MOJO_SHELL_CLIENT define. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge Created 4 years, 4 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 | « content/browser/BUILD.gn ('k') | content/browser/child_process_launcher.h » ('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 21c29ee88d6e8de7a5b0ef351f2538673ef8f2d0..d7a1f3958a4ac9896d8f6c0289a611d7b7a2bd97 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -277,7 +277,7 @@ static void SetUpGLibLogHandler() {
}
#endif // defined(USE_GLIB)
-#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
+#if defined(USE_AURA)
void WaitForMojoShellInitialize() {
// TODO(rockot): Remove this. http://crbug.com/594852.
base::RunLoop wait_loop;
@@ -285,7 +285,7 @@ void WaitForMojoShellInitialize() {
wait_loop.QuitClosure());
wait_loop.Run();
}
-#endif // defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
+#endif // defined(USE_AURA)
void OnStoppedStartupTracing(const base::FilePath& trace_file) {
VLOG(0) << "Completed startup tracing to " << trace_file.value();
@@ -1196,7 +1196,7 @@ int BrowserMainLoop::BrowserThreadsStarted() {
->task_runner()));
mojo_shell_context_.reset(new MojoShellContext);
-#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
+#if defined(USE_AURA)
// TODO(rockot): Remove the blocking wait for init.
// http://crbug.com/594852.
if (shell::ShellIsRemote() && MojoShellConnection::GetForProcess()) {
@@ -1243,11 +1243,8 @@ int BrowserMainLoop::BrowserThreadsStarted() {
BrowserGpuChannelHostFactory::Initialize(established_gpu_channel);
ImageTransportFactory::Initialize();
#if defined(USE_AURA)
- bool use_mus_in_renderer = false;
-#if defined (MOJO_SHELL_CLIENT)
- use_mus_in_renderer = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ bool use_mus_in_renderer = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseMusInRenderer);
-#endif // defined(MOJO_SHELL_CLIENT);
if (aura::Env::GetInstance() && !use_mus_in_renderer) {
aura::Env::GetInstance()->set_context_factory(GetContextFactory());
}
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/child_process_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698