OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/service_process_util.h" | 5 #include "chrome/common/service_process_util.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/base_switches.h" | 13 #include "base/base_switches.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/singleton.h" | 17 #include "base/memory/singleton.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/sha1.h" | 19 #include "base/sha1.h" |
20 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
23 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
24 #include "base/version.h" | 24 #include "base/version.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 #include "chrome/common/chrome_constants.h" | 26 #include "chrome/common/chrome_constants.h" |
27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
29 #include "components/cloud_devices/common/cloud_devices_switches.h" | 29 #include "components/cloud_devices/common/cloud_devices_switches.h" |
| 30 #include "components/network_session_configurator/common/network_switches.h" |
30 #include "components/version_info/version_info.h" | 31 #include "components/version_info/version_info.h" |
31 #include "content/public/common/content_paths.h" | 32 #include "content/public/common/content_paths.h" |
32 #include "content/public/common/content_switches.h" | 33 #include "content/public/common/content_switches.h" |
33 #include "google_apis/gaia/gaia_switches.h" | 34 #include "google_apis/gaia/gaia_switches.h" |
34 #include "ui/base/ui_base_switches.h" | 35 #include "ui/base/ui_base_switches.h" |
35 | 36 |
36 #if !defined(OS_MACOSX) | 37 #if !defined(OS_MACOSX) |
37 | 38 |
38 namespace { | 39 namespace { |
39 | 40 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 shared_data->service_process_pid = base::GetCurrentProcId(); | 279 shared_data->service_process_pid = base::GetCurrentProcId(); |
279 shared_mem_service_data_ = std::move(shared_mem_service_data); | 280 shared_mem_service_data_ = std::move(shared_mem_service_data); |
280 return true; | 281 return true; |
281 } | 282 } |
282 | 283 |
283 mojo::edk::NamedPlatformHandle ServiceProcessState::GetServiceProcessChannel() { | 284 mojo::edk::NamedPlatformHandle ServiceProcessState::GetServiceProcessChannel() { |
284 return ::GetServiceProcessChannel(); | 285 return ::GetServiceProcessChannel(); |
285 } | 286 } |
286 | 287 |
287 #endif // !OS_MACOSX | 288 #endif // !OS_MACOSX |
OLD | NEW |