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

Unified Diff: components/nacl/browser/nacl_process_host.cc

Issue 2585963002: Clarifying the parameters ownership of BrowserChildProcessHost::Launch() (Closed)
Patch Set: Fixed crasher on Windows. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/nacl/browser/nacl_broker_host_win.cc ('k') | content/browser/browser_child_process_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/nacl_process_host.cc
diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc
index f8b471185caaffbc90ef8ba30cafe9f6ec4d0124..5cf4cf49752249589cb1e45f50bdf50ddda1bf8b 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -577,8 +577,8 @@ bool NaClProcessHost::LaunchSelLdr() {
return true;
}
#endif
- process_->Launch(new NaClSandboxedProcessLauncherDelegate(),
- cmd_line.release(), true);
+ process_->Launch(base::MakeUnique<NaClSandboxedProcessLauncherDelegate>(),
+ std::move(cmd_line), true);
return true;
}
« no previous file with comments | « components/nacl/browser/nacl_broker_host_win.cc ('k') | content/browser/browser_child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698