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

Side by Side Diff: content/browser/child_process_launcher.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/browser/child_process_launcher.h" 5 #include "content/browser/child_process_launcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/i18n/icu_util.h" 10 #include "base/i18n/icu_util.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 // static 154 // static
155 void ChildProcessLauncher::SetRegisteredFilesForService( 155 void ChildProcessLauncher::SetRegisteredFilesForService(
156 const std::string& service_name, 156 const std::string& service_name,
157 catalog::RequiredFileMap required_files) { 157 catalog::RequiredFileMap required_files) {
158 ChildProcessLauncherHelper::SetRegisteredFilesForService( 158 ChildProcessLauncherHelper::SetRegisteredFilesForService(
159 service_name, std::move(required_files)); 159 service_name, std::move(required_files));
160 } 160 }
161 161
162 // static
163 void ChildProcessLauncher::ResetRegisteredFilesForTesting() {
164 ChildProcessLauncherHelper::ResetRegisteredFilesForTesting();
165 }
166
162 ChildProcessLauncher::Client* ChildProcessLauncher::ReplaceClientForTest( 167 ChildProcessLauncher::Client* ChildProcessLauncher::ReplaceClientForTest(
163 Client* client) { 168 Client* client) {
164 Client* ret = client_; 169 Client* ret = client_;
165 client_ = client; 170 client_ = client;
166 return ret; 171 return ret;
167 } 172 }
168 173
169 } // namespace content 174 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher.h ('k') | content/browser/child_process_launcher_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698