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

Unified Diff: content/browser/zygote_host_linux.cc

Issue 7346017: Clean up users of a deprecated base::LaunchApp API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/zygote_host_linux.cc
diff --git a/content/browser/zygote_host_linux.cc b/content/browser/zygote_host_linux.cc
index 328c603962a43b55e19ee8ff8156c417fec7ad22..e4c04ae14048c0db2da59c8e598a40a066bf5f42 100644
--- a/content/browser/zygote_host_linux.cc
+++ b/content/browser/zygote_host_linux.cc
@@ -149,8 +149,11 @@ void ZygoteHost::Init(const std::string& sandbox_cmd) {
fds_to_map.push_back(std::make_pair(dummy_fd, 7));
}
- base::ProcessHandle process;
- base::LaunchApp(cmd_line.argv(), fds_to_map, false, &process);
+ base::ProcessHandle process = -1;
+ base::LaunchOptions options;
+ options.process_handle = &process;
+ options.fds_to_remap = &fds_to_map;
+ base::LaunchProcess(cmd_line.argv(), options);
CHECK(process != -1) << "Failed to launch zygote process";
if (using_suid_sandbox_) {

Powered by Google App Engine
This is Rietveld 408576698