diff options
author | sievers <sievers@chromium.org> | 2015-03-27 18:50:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-28 01:51:13 +0000 |
commit | 954e37aad499a68771f3c517d1e4760e38986e0e (patch) | |
tree | 248180affc2a20254718ebe410a9b1e56b248a76 /components/nacl/browser | |
parent | f6af169dd63e9aa32ec961fe67d6c6c7d7295e38 (diff) | |
download | chromium_src-954e37aad499a68771f3c517d1e4760e38986e0e.zip chromium_src-954e37aad499a68771f3c517d1e4760e38986e0e.tar.gz chromium_src-954e37aad499a68771f3c517d1e4760e38986e0e.tar.bz2 |
Simplify ChildProcessLauncher
Remove the refcounted internal state object (nested class 'Context').
This refactor makes it more obvious what happens on what thread,
and avoids the need to pass refptrs around.
TBR=bradnelson@chromium.org
BUG=469248
Review URL: https://codereview.chromium.org/1022703007
Cr-Commit-Position: refs/heads/master@{#322695}
Diffstat (limited to 'components/nacl/browser')
-rw-r--r-- | components/nacl/browser/nacl_broker_host_win.cc | 3 | ||||
-rw-r--r-- | components/nacl/browser/nacl_process_host.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/components/nacl/browser/nacl_broker_host_win.cc b/components/nacl/browser/nacl_broker_host_win.cc index a8c5350..17c7ed0 100644 --- a/components/nacl/browser/nacl_broker_host_win.cc +++ b/components/nacl/browser/nacl_broker_host_win.cc @@ -67,7 +67,8 @@ bool NaClBrokerHost::Init() { cmd_line->AppendSwitch(switches::kNoErrorDialogs); process_->Launch(new NaClBrokerSandboxedProcessLauncherDelegate, - cmd_line); + cmd_line, + true); return true; } diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc index a0c8e56..28a0537 100644 --- a/components/nacl/browser/nacl_process_host.cc +++ b/components/nacl/browser/nacl_process_host.cc @@ -626,7 +626,8 @@ bool NaClProcessHost::LaunchSelLdr() { #endif process_->Launch( new NaClSandboxedProcessLauncherDelegate(process_->GetHost()), - cmd_line.release()); + cmd_line.release(), + true); return true; } |