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

Side by Side Diff: content/browser/child_process_launcher_helper_posix.cc

Issue 2749653002: allow unit_tests to re-create service manager context. (Closed)
Patch Set: comment updated Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher_helper_posix.h ('k') | content/browser/child_process_launcher_helper_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698