summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 20:55:30 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 20:55:30 +0000
commitadda869f22b29e7c43c2d84efdda2919854ed608 (patch)
tree9798ebe411388bacbd50a5798504f04ace15902b /content
parent81f5486a2aa70e059a76b6e0851bb55b2e3daf53 (diff)
downloadchromium_src-adda869f22b29e7c43c2d84efdda2919854ed608.zip
chromium_src-adda869f22b29e7c43c2d84efdda2919854ed608.tar.gz
chromium_src-adda869f22b29e7c43c2d84efdda2919854ed608.tar.bz2
Clean up users of a deprecated base::LaunchApp API.
BUG=88990 Review URL: http://codereview.chromium.org/7351003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/zygote_host_linux.cc11
-rw-r--r--content/common/sandbox_policy.cc4
2 files changed, 8 insertions, 7 deletions
diff --git a/content/browser/zygote_host_linux.cc b/content/browser/zygote_host_linux.cc
index e4c04ae..fb5da59 100644
--- a/content/browser/zygote_host_linux.cc
+++ b/content/browser/zygote_host_linux.cc
@@ -298,18 +298,17 @@ void ZygoteHost::AdjustRendererOOMScore(base::ProcessHandle pid, int score) {
}
if (using_suid_sandbox_ && !selinux) {
- base::ProcessHandle sandbox_helper_process;
std::vector<std::string> adj_oom_score_cmdline;
-
adj_oom_score_cmdline.push_back(sandbox_binary_);
adj_oom_score_cmdline.push_back(base::kAdjustOOMScoreSwitch);
adj_oom_score_cmdline.push_back(base::Int64ToString(pid));
adj_oom_score_cmdline.push_back(base::IntToString(score));
- CommandLine adj_oom_score_cmd(adj_oom_score_cmdline);
- if (base::LaunchApp(adj_oom_score_cmd, false, true,
- &sandbox_helper_process)) {
+
+ base::ProcessHandle sandbox_helper_process;
+ base::LaunchOptions options;
+ options.process_handle = &sandbox_helper_process;
+ if (base::LaunchProcess(adj_oom_score_cmdline, options))
ProcessWatcher::EnsureProcessGetsReaped(sandbox_helper_process);
- }
} else if (!using_suid_sandbox_) {
if (!base::AdjustOOMScore(pid, score))
PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid;
diff --git a/content/common/sandbox_policy.cc b/content/common/sandbox_policy.cc
index 7841120..2eb189f 100644
--- a/content/common/sandbox_policy.cc
+++ b/content/common/sandbox_policy.cc
@@ -400,7 +400,9 @@ base::ProcessHandle StartProcessWithAccess(CommandLine* cmd_line,
if (!in_sandbox) {
policy->Release();
- base::LaunchApp(*cmd_line, false, false, &process);
+ base::LaunchOptions options;
+ options.process_handle = &process;
+ base::LaunchProcess(*cmd_line, options);
return process;
}