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

Side by Side Diff: content/browser/child_process_launcher_helper_mac.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 "base/memory/ptr_util.h" 5 #include "base/memory/ptr_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/posix/global_descriptors.h" 7 #include "base/posix/global_descriptors.h"
8 #include "content/browser/bootstrap_sandbox_manager_mac.h" 8 #include "content/browser/bootstrap_sandbox_manager_mac.h"
9 #include "content/browser/child_process_launcher.h" 9 #include "content/browser/child_process_launcher.h"
10 #include "content/browser/child_process_launcher_helper.h" 10 #include "content/browser/child_process_launcher_helper.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 // static 152 // static
153 void ChildProcessLauncherHelper::SetRegisteredFilesForService( 153 void ChildProcessLauncherHelper::SetRegisteredFilesForService(
154 const std::string& service_name, 154 const std::string& service_name,
155 catalog::RequiredFileMap required_files) { 155 catalog::RequiredFileMap required_files) {
156 // No file passing from the manifest on Mac yet. 156 // No file passing from the manifest on Mac yet.
157 DCHECK(required_files.empty()); 157 DCHECK(required_files.empty());
158 } 158 }
159 159
160 // static 160 // static
161 void ChildProcessLauncherHelper::ResetRegisteredFilesForTesting() {}
162
163 // static
161 base::File OpenFileToShare(const base::FilePath& path, 164 base::File OpenFileToShare(const base::FilePath& path,
162 base::MemoryMappedFile::Region* region) { 165 base::MemoryMappedFile::Region* region) {
163 // Not used yet (until required files are described in the service manifest on 166 // Not used yet (until required files are described in the service manifest on
164 // Mac). 167 // Mac).
165 NOTREACHED(); 168 NOTREACHED();
166 return base::File(); 169 return base::File();
167 } 170 }
168 171
169 } // namespace internal 172 } // namespace internal
170 } // namespace content 173 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher_helper_linux.cc ('k') | content/browser/child_process_launcher_helper_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698