| Index: mash/example/window_type_launcher/main.cc
|
| diff --git a/mash/example/window_type_launcher/main.cc b/mash/example/window_type_launcher/main.cc
|
| index 27d8cd3100ebaf6394057d120780306e5efe10ae..d8244398438bb0e867002da655393174602128fa 100644
|
| --- a/mash/example/window_type_launcher/main.cc
|
| +++ b/mash/example/window_type_launcher/main.cc
|
| @@ -14,17 +14,17 @@
|
| #include "base/threading/thread.h"
|
| #include "build/build_config.h"
|
| #include "mash/example/window_type_launcher/window_type_launcher.h"
|
| +#include "mojo/edk/embedder/embedder.h"
|
| +#include "mojo/edk/embedder/process_delegate.h"
|
| #include "mojo/message_pump/message_pump_mojo.h"
|
| #include "mojo/runner/child/runner_connection.h"
|
| #include "mojo/runner/init.h"
|
| #include "mojo/shell/public/cpp/application_impl.h"
|
| #include "mojo/shell/public/interfaces/application.mojom.h"
|
| -#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
|
| -#include "third_party/mojo/src/mojo/edk/embedder/process_delegate.h"
|
|
|
| namespace {
|
|
|
| -class ProcessDelegate : public mojo::embedder::ProcessDelegate {
|
| +class ProcessDelegate : public mojo::edk::ProcessDelegate {
|
| public:
|
| ProcessDelegate() {}
|
| ~ProcessDelegate() override {}
|
| @@ -52,18 +52,15 @@ int main(int argc, char** argv) {
|
| #endif
|
|
|
| {
|
| - mojo::embedder::PreInitializeChildProcess();
|
| - mojo::embedder::Init();
|
| + mojo::edk::PreInitializeChildProcess();
|
| + mojo::edk::Init();
|
|
|
| ProcessDelegate process_delegate;
|
| base::Thread io_thread("io_thread");
|
| base::Thread::Options io_thread_options(base::MessageLoop::TYPE_IO, 0);
|
| CHECK(io_thread.StartWithOptions(io_thread_options));
|
|
|
| - mojo::embedder::InitIPCSupport(mojo::embedder::ProcessType::NONE,
|
| - &process_delegate,
|
| - io_thread.task_runner().get(),
|
| - mojo::embedder::ScopedPlatformHandle());
|
| + mojo::edk::InitIPCSupport(&process_delegate, io_thread.task_runner().get());
|
|
|
| mojo::InterfaceRequest<mojo::Application> application_request;
|
| scoped_ptr<mojo::runner::RunnerConnection> connection(
|
| @@ -74,7 +71,7 @@ int main(int argc, char** argv) {
|
| mojo::ApplicationImpl impl(&delegate, std::move(application_request));
|
| loop.Run();
|
|
|
| - mojo::embedder::ShutdownIPCSupport();
|
| + mojo::edk::ShutdownIPCSupport();
|
| }
|
|
|
| return 0;
|
|
|