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

Unified Diff: mojo/shell/launcher_main.cc

Issue 700763002: More Windows build fixes, some tidying in mojo_main (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: reland: fix sense in mojo/shell Created 6 years, 1 month 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/incoming_connection_listener_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/launcher_main.cc
diff --git a/mojo/shell/launcher_main.cc b/mojo/shell/launcher_main.cc
index a515da0c6935e1bb1b0d40514f4124fe8be7e7c9..7c2c369a1568ed82ee1aea7fcf1b06962771aee6 100644
--- a/mojo/shell/launcher_main.cc
+++ b/mojo/shell/launcher_main.cc
@@ -23,11 +23,11 @@ const char kShellPath[] = "shell-path";
class Launcher {
public:
explicit Launcher(base::CommandLine* command_line)
- : app_path_(command_line->GetSwitchValueASCII(kAppPath)),
+ : app_path_(command_line->GetSwitchValuePath(kAppPath)),
app_url_(command_line->GetSwitchValueASCII(kAppURL)),
loop_(base::MessageLoop::TYPE_IO),
- connection_(base::FilePath(
- command_line->GetSwitchValueASCII(kShellPath))),
+ connection_(
+ base::FilePath(command_line->GetSwitchValuePath(kShellPath))),
connect_result_(0) {}
~Launcher() {}
@@ -89,7 +89,11 @@ class Launcher {
scoped_ptr<base::RunLoop> run_loop_;
};
+#if defined(OS_WIN)
+int main(int argc, wchar_t** argv) {
+#else
int main(int argc, char** argv) {
+#endif
base::AtExitManager at_exit;
mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>(
new mojo::embedder::SimplePlatformSupport()));
« no previous file with comments | « mojo/shell/incoming_connection_listener_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698