| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |