summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-15 16:47:02 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-15 16:47:02 +0000
commite599218171e942749da5c8b3931b091655c1b74c (patch)
tree703ee7f0427e0bafabb1402e678c40c31acec38e /chrome/service
parent24ea7da0968595f5365a537fba548e9163f1f371 (diff)
downloadchromium_src-e599218171e942749da5c8b3931b091655c1b74c.zip
chromium_src-e599218171e942749da5c8b3931b091655c1b74c.tar.gz
chromium_src-e599218171e942749da5c8b3931b091655c1b74c.tar.bz2
Change base::LaunchProcess API slightly
Rather than passing the out param process handle via the options, take it as a function argument. This simplifies many callers. BUG=88990 Review URL: http://codereview.chromium.org/7377012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92701 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/cloud_print/cloud_print_proxy.cc3
-rw-r--r--chrome/service/service_child_process_host.cc4
2 files changed, 2 insertions, 5 deletions
diff --git a/chrome/service/cloud_print/cloud_print_proxy.cc b/chrome/service/cloud_print/cloud_print_proxy.cc
index 17e8d35..2e02aa3 100644
--- a/chrome/service/cloud_print/cloud_print_proxy.cc
+++ b/chrome/service/cloud_print/cloud_print_proxy.cc
@@ -38,8 +38,7 @@ static void ShowTokenExpiredNotificationInBrowser() {
cmd_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
cmd_line.AppendSwitch(switches::kNotifyCloudPrintTokenExpired);
- base::LaunchOptions options;
- base::LaunchProcess(cmd_line, options);
+ base::LaunchProcess(cmd_line, base::LaunchOptions(), NULL);
}
CloudPrintProxy::CloudPrintProxy()
diff --git a/chrome/service/service_child_process_host.cc b/chrome/service/service_child_process_host.cc
index 00f96df..d111e90 100644
--- a/chrome/service/service_child_process_host.cc
+++ b/chrome/service/service_child_process_host.cc
@@ -36,9 +36,7 @@ bool ServiceChildProcessHost::Launch(CommandLine* cmd_line,
if (no_sandbox) {
base::ProcessHandle process = base::kNullProcessHandle;
cmd_line->AppendSwitch(switches::kNoSandbox);
- base::LaunchOptions options;
- options.process_handle = &process;
- base::LaunchProcess(*cmd_line, options);
+ base::LaunchProcess(*cmd_line, base::LaunchOptions(), &process);
set_handle(process);
} else {
set_handle(sandbox::StartProcessWithAccess(cmd_line, exposed_dir));