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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 #if defined(OS_WIN) | 312 #if defined(OS_WIN) |
313 if (GetContentClient()->browser()->ShouldUseWindowsPrefetchArgument()) | 313 if (GetContentClient()->browser()->ShouldUseWindowsPrefetchArgument()) |
314 cmd_line->AppendArg(switches::kPrefetchArgumentOther); | 314 cmd_line->AppendArg(switches::kPrefetchArgumentOther); |
315 #endif // defined(OS_WIN) | 315 #endif // defined(OS_WIN) |
316 | 316 |
317 if (no_sandbox_) | 317 if (no_sandbox_) |
318 cmd_line->AppendSwitch(switches::kNoSandbox); | 318 cmd_line->AppendSwitch(switches::kNoSandbox); |
319 | 319 |
320 // Browser command-line switches to propagate to the utility process. | 320 // Browser command-line switches to propagate to the utility process. |
321 static const char* const kSwitchNames[] = { | 321 static const char* const kSwitchNames[] = { |
322 switches::kDebugPluginLoading, | |
323 switches::kNoSandbox, | 322 switches::kNoSandbox, |
324 switches::kProfilerTiming, | 323 switches::kProfilerTiming, |
325 #if defined(OS_MACOSX) | 324 #if defined(OS_MACOSX) |
326 switches::kEnableSandboxLogging, | 325 switches::kEnableSandboxLogging, |
327 #endif | 326 #endif |
328 }; | 327 }; |
329 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 328 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
330 arraysize(kSwitchNames)); | 329 arraysize(kSwitchNames)); |
331 | 330 |
332 if (has_cmd_prefix) { | 331 if (has_cmd_prefix) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 base::ProcessHandle handle; | 397 base::ProcessHandle handle; |
399 if (RenderProcessHost::run_renderer_in_process()) | 398 if (RenderProcessHost::run_renderer_in_process()) |
400 handle = base::GetCurrentProcessHandle(); | 399 handle = base::GetCurrentProcessHandle(); |
401 else | 400 else |
402 handle = process_->GetData().handle; | 401 handle = process_->GetData().handle; |
403 | 402 |
404 mojo_application_host_->Activate(this, handle); | 403 mojo_application_host_->Activate(this, handle); |
405 } | 404 } |
406 | 405 |
407 } // namespace content | 406 } // namespace content |
OLD | NEW |