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

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

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/renderer_host/render_widget_host_view_mac.mm ('k') | content/common/BUILD.gn » ('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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698