| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 namespace shell { | 7 namespace shell { |
| 8 | 8 |
| 9 extern int g_service_runner_argc; | 9 extern int g_service_runner_argc; |
| 10 extern const char* const* g_service_runner_argv; | 10 extern const char* const* g_service_runner_argv; |
| 11 | 11 |
| 12 } // namespace shell | 12 } // namespace shell |
| 13 | 13 |
| 14 #if !defined(OS_WIN) | 14 #if !defined(OS_WIN) |
| 15 extern "C" { | 15 extern "C" { |
| 16 __attribute__((visibility("default"))) void InitCommandLineArgs( | 16 __attribute__((visibility("default"))) void InitCommandLineArgs( |
| 17 int argc, const char* const* argv) { | 17 int argc, const char* const* argv) { |
| 18 shell::g_service_runner_argc = argc; | 18 shell::g_service_runner_argc = argc; |
| 19 shell::g_service_runner_argv = argv; | 19 shell::g_service_runner_argv = argv; |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 #endif | 22 #endif |
| OLD | NEW |