| Index: mojo/runner/desktop/main_helper.cc
|
| diff --git a/mojo/runner/desktop/main_helper.cc b/mojo/runner/desktop/main_helper.cc
|
| deleted file mode 100644
|
| index 00fb85169cccbeedb07c86f1e7a277b38a559b90..0000000000000000000000000000000000000000
|
| --- a/mojo/runner/desktop/main_helper.cc
|
| +++ /dev/null
|
| @@ -1,53 +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 "mojo/runner/desktop/main_helper.h"
|
| -
|
| -#include "base/at_exit.h"
|
| -#include "base/base_switches.h"
|
| -#include "base/command_line.h"
|
| -#include "base/debug/debugger.h"
|
| -#include "base/files/file_path.h"
|
| -#include "base/logging.h"
|
| -#include "base/process/launch.h"
|
| -#include "base/stl_util.h"
|
| -#include "base/strings/string_split.h"
|
| -#include "base/strings/utf_string_conversions.h"
|
| -#include "mojo/runner/desktop/launcher_process.h"
|
| -#include "mojo/shell/runner/host/child_process.h"
|
| -#include "mojo/shell/runner/host/switches.h"
|
| -#include "mojo/shell/runner/init.h"
|
| -
|
| -#if defined(OS_WIN)
|
| -#include <windows.h>
|
| -#elif (OS_POSIX)
|
| -#include <unistd.h>
|
| -#endif
|
| -
|
| -namespace mojo {
|
| -namespace runner {
|
| -
|
| -int RunnerMain(int argc, char** argv,
|
| - const GURL& mojo_url,
|
| - const base::Closure& callback) {
|
| - base::CommandLine::Init(argc, argv);
|
| - const base::CommandLine& command_line =
|
| - *base::CommandLine::ForCurrentProcess();
|
| -
|
| - base::AtExitManager at_exit;
|
| - shell::InitializeLogging();
|
| - shell::WaitForDebuggerIfNecessary();
|
| -
|
| -#if !defined(OFFICIAL_BUILD) && defined(OS_WIN)
|
| - base::RouteStdioToConsole(false);
|
| -#endif
|
| -
|
| - if (command_line.HasSwitch(switches::kChildProcess))
|
| - return shell::ChildProcessMain();
|
| -
|
| - return LauncherProcessMain(mojo_url, callback);
|
| -}
|
| -
|
| -} // namespace runner
|
| -} // namespace mojo
|
|
|