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

Unified Diff: mojo/shell/standalone/desktop/main_helper.cc

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/shell/standalone/desktop/main_helper.h ('k') | mojo/shell/standalone/register_local_aliases.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « mojo/shell/standalone/desktop/main_helper.h ('k') | mojo/shell/standalone/register_local_aliases.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698