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

Unified Diff: content/app/mojo/mojo_init.cc

Issue 1554443003: Stop linking in the old Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and fix new flaky test Created 4 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 | « content/app/BUILD.gn ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/mojo/mojo_init.cc
diff --git a/content/app/mojo/mojo_init.cc b/content/app/mojo/mojo_init.cc
index 07e4d5aaa4d55bfa1dc66a8fd51a0e766e1e7db3..5611994dd5ff87115290e0a6e16d4d096edf5895 100644
--- a/content/app/mojo/mojo_init.cc
+++ b/content/app/mojo/mojo_init.cc
@@ -9,7 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/common/content_switches.h"
#include "ipc/ipc_channel.h"
-#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
+#include "mojo/edk/embedder/embedder.h"
#if defined(MOJO_SHELL_CLIENT)
#include "content/common/mojo/mojo_shell_connection_impl.h"
@@ -26,26 +26,19 @@ class MojoInitializer {
*base::CommandLine::ForCurrentProcess();
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
- if (process_type.empty() && !command_line.HasSwitch("use-old-edk")) {
- base::CommandLine::ForCurrentProcess()->AppendSwitch(
- "use-new-edk");
- }
-
- if (command_line.HasSwitch("use-new-edk")) {
- bool initialize_as_parent = process_type.empty();
+ bool initialize_as_parent = process_type.empty();
#if defined(MOJO_SHELL_CLIENT)
- if (IsRunningInMojoShell())
- initialize_as_parent = false;
+ if (IsRunningInMojoShell())
+ initialize_as_parent = false;
#endif
- if (initialize_as_parent) {
- mojo::embedder::PreInitializeParentProcess();
- } else {
- mojo::embedder::PreInitializeChildProcess();
- }
+ if (initialize_as_parent) {
+ mojo::edk::PreInitializeParentProcess();
+ } else {
+ mojo::edk::PreInitializeChildProcess();
}
- mojo::embedder::SetMaxMessageSize(IPC::Channel::kMaximumMessageSize);
- mojo::embedder::Init();
+ mojo::edk::SetMaxMessageSize(IPC::Channel::kMaximumMessageSize);
+ mojo::edk::Init();
}
};
« no previous file with comments | « content/app/BUILD.gn ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698