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

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

Issue 2960703003: Add a feature flag for network service and about:flags entry for it. (Closed)
Patch Set: merge Created 3 years, 5 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
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/browser/utility_process_host_impl.h" 5 #include "content/browser/utility_process_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 #if defined(OS_WIN) 297 #if defined(OS_WIN)
298 cmd_line->AppendArg(switches::kPrefetchArgumentOther); 298 cmd_line->AppendArg(switches::kPrefetchArgumentOther);
299 #endif // defined(OS_WIN) 299 #endif // defined(OS_WIN)
300 300
301 if (no_sandbox_) 301 if (no_sandbox_)
302 cmd_line->AppendSwitch(switches::kNoSandbox); 302 cmd_line->AppendSwitch(switches::kNoSandbox);
303 303
304 // Browser command-line switches to propagate to the utility process. 304 // Browser command-line switches to propagate to the utility process.
305 static const char* const kSwitchNames[] = { 305 static const char* const kSwitchNames[] = {
306 switches::kEnableNetworkService,
307 switches::kHostResolverRules, 306 switches::kHostResolverRules,
308 switches::kLogNetLog, 307 switches::kLogNetLog,
309 switches::kNoSandbox, 308 switches::kNoSandbox,
310 switches::kProfilerTiming, 309 switches::kProfilerTiming,
311 switches::kProxyServer, 310 switches::kProxyServer,
312 #if defined(OS_MACOSX) 311 #if defined(OS_MACOSX)
313 switches::kEnableSandboxLogging, 312 switches::kEnableSandboxLogging,
314 #endif 313 #endif
315 switches::kUseFakeDeviceForMediaStream, 314 switches::kUseFakeDeviceForMediaStream,
316 switches::kUseFileForFakeVideoCapture, 315 switches::kUseFileForFakeVideoCapture,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 base::WeakPtr<UtilityProcessHostImpl> host, 394 base::WeakPtr<UtilityProcessHostImpl> host,
396 int error_code) { 395 int error_code) {
397 if (!host) 396 if (!host)
398 return; 397 return;
399 398
400 host->OnProcessLaunchFailed(error_code); 399 host->OnProcessLaunchFailed(error_code);
401 delete host.get(); 400 delete host.get();
402 } 401 }
403 402
404 } // namespace content 403 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698