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

Unified Diff: mojo/application/public/cpp/lib/init_commandline.cc

Issue 1149833007: Embed a mojo ApplicationManager in content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
Index: mojo/application/public/cpp/lib/init_commandline.cc
diff --git a/mojo/application/public/cpp/lib/init_commandline.cc b/mojo/application/public/cpp/lib/init_commandline.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a61797b4fccf782f7830d5b01b3a2e35cf25cc3a
--- /dev/null
+++ b/mojo/application/public/cpp/lib/init_commandline.cc
@@ -0,0 +1,22 @@
+// Copyright 2014 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 "build/build_config.h"
+
+namespace mojo {
+
+extern int g_application_runner_argc;
+extern const char* const* g_application_runner_argv;
+
+}
+
+#if !defined(OS_WIN)
+extern "C" {
+__attribute__((visibility("default"))) void InitCommandLineArgs(
+ int argc, const char* const* argv) {
+ mojo::g_application_runner_argc = argc;
+ mojo::g_application_runner_argv = argv;
+}
+}
+#endif

Powered by Google App Engine
This is Rietveld 408576698