| Index: components/mus/example/window_type_launcher/main.cc
|
| diff --git a/components/mus/example/window_type_launcher/main.cc b/components/mus/example/window_type_launcher/main.cc
|
| deleted file mode 100644
|
| index c2e94f9836d7c025097988e3ad70f41f3d0304fa..0000000000000000000000000000000000000000
|
| --- a/components/mus/example/window_type_launcher/main.cc
|
| +++ /dev/null
|
| @@ -1,79 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "base/at_exit.h"
|
| -#include "base/command_line.h"
|
| -#include "base/debug/stack_trace.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "base/message_loop/message_loop.h"
|
| -#include "base/process/launch.h"
|
| -#include "base/threading/thread.h"
|
| -#include "build/build_config.h"
|
| -#include "components/mus/example/window_type_launcher/window_type_launcher.h"
|
| -#include "mojo/application/public/cpp/application_impl.h"
|
| -#include "mojo/application/public/interfaces/application.mojom.h"
|
| -#include "mojo/message_pump/message_pump_mojo.h"
|
| -#include "mojo/runner/child/runner_connection.h"
|
| -#include "mojo/runner/init.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 {
|
| - public:
|
| - ProcessDelegate() {}
|
| - ~ProcessDelegate() override {}
|
| -
|
| - private:
|
| - void OnShutdownComplete() override {}
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(ProcessDelegate);
|
| -};
|
| -
|
| -}
|
| -
|
| -int main(int argc, char** argv) {
|
| - base::AtExitManager at_exit;
|
| - base::CommandLine::Init(argc, argv);
|
| -
|
| - mojo::runner::InitializeLogging();
|
| - mojo::runner::WaitForDebuggerIfNecessary();
|
| -
|
| -#if !defined(OFFICIAL_BUILD)
|
| - base::debug::EnableInProcessStackDumping();
|
| -#if defined(OS_WIN)
|
| - base::RouteStdioToConsole(false);
|
| -#endif
|
| -#endif
|
| -
|
| - {
|
| - mojo::embedder::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());
|
| -
|
| - base::MessageLoop loop(mojo::common::MessagePumpMojo::Create());
|
| - WindowTypeLauncher delegate;
|
| - {
|
| - mojo::InterfaceRequest<mojo::Application> application_request;
|
| - scoped_ptr<mojo::runner::RunnerConnection> connection(
|
| - mojo::runner::RunnerConnection::ConnectToRunner(
|
| - &application_request, mojo::ScopedMessagePipeHandle()));
|
| - mojo::ApplicationImpl impl(&delegate, application_request.Pass());
|
| - loop.Run();
|
| - }
|
| -
|
| - mojo::embedder::ShutdownIPCSupport();
|
| - }
|
| -
|
| - return 0;
|
| -}
|
|
|