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

Unified Diff: mojo/runner/context.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 | « mojo/runner/context.h ('k') | mojo/runner/desktop/launcher_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index 657d99ae228a99253c222382924d6dc903b964fc..18df95da0f7591f5b14c165a0cb297243d86bb53 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -28,6 +28,7 @@
#include "components/devtools_service/public/cpp/switches.h"
#include "components/devtools_service/public/interfaces/devtools_service.mojom.h"
#include "components/tracing/tracing_switches.h"
+#include "mojo/edk/embedder/embedder.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/runner/host/in_process_native_runner.h"
#include "mojo/runner/host/out_of_process_native_runner.h"
@@ -47,7 +48,6 @@
#include "mojo/shell/query_util.h"
#include "mojo/shell/switches.h"
#include "mojo/util/filename_util.h"
-#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
#include "url/gurl.h"
namespace mojo {
@@ -58,8 +58,8 @@ namespace {
class Setup {
public:
Setup() {
- embedder::PreInitializeParentProcess();
- embedder::Init();
+ edk::PreInitializeParentProcess();
+ edk::Init();
}
~Setup() {}
@@ -212,10 +212,7 @@ bool Context::Init(const base::FilePath& shell_file_root) {
task_runners_.reset(
new TaskRunners(base::MessageLoop::current()->task_runner()));
- // TODO(vtl): This should be MASTER, not NONE.
- embedder::InitIPCSupport(embedder::ProcessType::NONE, this,
- task_runners_->io_runner(),
- embedder::ScopedPlatformHandle());
+ edk::InitIPCSupport(this, task_runners_->io_runner());
package_manager_ = new shell::PackageManagerImpl(
shell_file_root, task_runners_->blocking_pool());
@@ -293,7 +290,7 @@ void Context::Shutdown() {
task_runners_->shell_runner());
// Post a task in case OnShutdownComplete is called synchronously.
base::MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(embedder::ShutdownIPCSupport));
+ FROM_HERE, base::Bind(edk::ShutdownIPCSupport));
// We'll quit when we get OnShutdownComplete().
base::MessageLoop::current()->Run();
}
« no previous file with comments | « mojo/runner/context.h ('k') | mojo/runner/desktop/launcher_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698