Index: mojo/shell/standalone/desktop/main_helper.cc |
diff --git a/mojo/runner/desktop/main_helper.cc b/mojo/shell/standalone/desktop/main_helper.cc |
similarity index 72% |
rename from mojo/runner/desktop/main_helper.cc |
rename to mojo/shell/standalone/desktop/main_helper.cc |
index 00fb85169cccbeedb07c86f1e7a277b38a559b90..4cb69e743d2945412ce6bf2f384ef9963aa482bd 100644 |
--- a/mojo/runner/desktop/main_helper.cc |
+++ b/mojo/shell/standalone/desktop/main_helper.cc |
@@ -2,7 +2,7 @@ |
// 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 "mojo/shell/standalone/desktop/main_helper.h" |
#include "base/at_exit.h" |
#include "base/base_switches.h" |
@@ -14,10 +14,10 @@ |
#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" |
+#include "mojo/shell/standalone/desktop/launcher_process.h" |
#if defined(OS_WIN) |
#include <windows.h> |
@@ -26,28 +26,29 @@ |
#endif |
namespace mojo { |
-namespace runner { |
+namespace shell { |
-int RunnerMain(int argc, char** argv, |
- const GURL& mojo_url, |
- const base::Closure& callback) { |
+int StandaloneShellMain(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(); |
+ InitializeLogging(); |
+ WaitForDebuggerIfNecessary(); |
#if !defined(OFFICIAL_BUILD) && defined(OS_WIN) |
base::RouteStdioToConsole(false); |
#endif |
if (command_line.HasSwitch(switches::kChildProcess)) |
- return shell::ChildProcessMain(); |
+ return ChildProcessMain(); |
return LauncherProcessMain(mojo_url, callback); |
} |
-} // namespace runner |
+} // namespace shell |
} // namespace mojo |