| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "content/browser/child_process_launcher_helper_posix.h" | 5 #include "content/browser/child_process_launcher_helper_posix.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "base/posix/global_descriptors.h" | 9 #include "base/posix/global_descriptors.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 if (!base::StartsWith(service_name, "content_", | 134 if (!base::StartsWith(service_name, "content_", |
| 135 base::CompareCase::INSENSITIVE_ASCII)) { | 135 base::CompareCase::INSENSITIVE_ASCII)) { |
| 136 // Not a content child service, ignore. | 136 // Not a content child service, ignore. |
| 137 return; | 137 return; |
| 138 } | 138 } |
| 139 | 139 |
| 140 DCHECK(GetRequiredFilesByServiceMap().count(service_name) == 0); | 140 DCHECK(GetRequiredFilesByServiceMap().count(service_name) == 0); |
| 141 GetRequiredFilesByServiceMap()[service_name] = std::move(required_files); | 141 GetRequiredFilesByServiceMap()[service_name] = std::move(required_files); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void ResetFilesToShareForTestingPosix() { |
| 145 GetRequiredFilesByServiceMap().clear(); |
| 146 } |
| 147 |
| 144 } // namespace internal | 148 } // namespace internal |
| 145 } // namespace content | 149 } // namespace content |
| OLD | NEW |