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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1738663002: Hook embedded shell up to MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 4 years, 10 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 8f6909b77627650af6b10479f3072ec5c2eb11fb..9e3c4be79596b49432a3d826570918a95c771c54 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -915,16 +915,14 @@ int BrowserMainLoop::CreateThreads() {
}
int BrowserMainLoop::PreMainMessageLoopRun() {
-#if defined(MOJO_SHELL_CLIENT)
if (IsRunningInMojoShell()) {
MojoShellConnectionImpl::Create();
MojoShellConnectionImpl::Get()->BindToCommandLinePlatformChannel();
-#if defined(USE_AURA)
+#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
views::WindowManagerConnection::Create(
MojoShellConnection::Get()->GetShell());
#endif
}
-#endif
if (parts_) {
TRACE_EVENT0("startup",
@@ -1193,7 +1191,7 @@ int BrowserMainLoop::BrowserThreadsStarted() {
BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO)
->task_runner()));
mojo_shell_context_.reset(new MojoShellContext);
-#endif
+#endif // !defined(OS_IOS)
#if !defined(OS_IOS)
indexed_db_thread_.reset(new base::Thread("IndexedDB"));

Powered by Google App Engine
This is Rietveld 408576698