| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/base_paths.h" | 6 #include "base/base_paths.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/stack_trace.h" | 8 #include "base/debug/stack_trace.h" |
| 9 #include "base/i18n/icu_util.h" | 9 #include "base/i18n/icu_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 service_manager::InitializeLogging(); | 82 service_manager::InitializeLogging(); |
| 83 | 83 |
| 84 { | 84 { |
| 85 base::FilePath icu_data_dir = base::CommandLine::ForCurrentProcess() | 85 base::FilePath icu_data_dir = base::CommandLine::ForCurrentProcess() |
| 86 ->GetSwitchValuePath(service_manager::switches::kIcuDataDir); | 86 ->GetSwitchValuePath(service_manager::switches::kIcuDataDir); |
| 87 ScopedIcuDataDirOverride path_override(icu_data_dir); | 87 ScopedIcuDataDirOverride path_override(icu_data_dir); |
| 88 base::i18n::InitializeICU(); | 88 base::i18n::InitializeICU(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 #if !defined(OFFICIAL_BUILD) |
| 92 // Initialize stack dumping before initializing sandbox to make sure symbol |
| 93 // names in all loaded libraries will be cached. |
| 94 base::debug::EnableInProcessStackDumping(); |
| 95 #endif |
| 96 |
| 91 service_manager::WaitForDebuggerIfNecessary(); | 97 service_manager::WaitForDebuggerIfNecessary(); |
| 92 | 98 |
| 93 service_manager::RunStandaloneService(base::Bind(&RunServiceMain)); | 99 service_manager::RunStandaloneService(base::Bind(&RunServiceMain)); |
| 94 return 0; | 100 return 0; |
| 95 } | 101 } |
| OLD | NEW |