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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1793793002: Remove ShellConnection::WaitForInitialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/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 162f0269445b157301337215fa80f7ae86decccc..3d166e1afbc29fbaac611852ed46e84419b9de53 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -77,6 +77,7 @@
#include "media/base/media.h"
#include "media/base/user_input_monitor.h"
#include "media/midi/midi_manager.h"
+#include "mojo/edk/embedder/embedder.h"
#include "mojo/shell/public/cpp/shell.h"
#include "net/base/network_change_notifier.h"
#include "net/socket/client_socket_factory.h"
@@ -913,11 +914,14 @@ int BrowserMainLoop::CreateThreads() {
int BrowserMainLoop::PreMainMessageLoopRun() {
if (IsRunningInMojoShell()) {
+ mojo::edk::SetParentPipeHandleFromCommandLine();
MojoShellConnectionImpl::Create();
- MojoShellConnectionImpl::Get()->BindToCommandLinePlatformChannel();
+ MojoShellConnectionImpl::Get()->BindToRequestFromCommandLine();
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
- views::WindowManagerConnection::Create(
- MojoShellConnection::Get()->GetConnector());
+ if (MojoShellConnection::Get()) {
+ views::WindowManagerConnection::Create(
+ MojoShellConnection::Get()->GetConnector());
+ }
#endif
}
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698