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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 7351003: Clean up users of a deprecated base::LaunchApp API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win-only 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
« no previous file with comments | « chrome_frame/ready_mode/internal/registry_ready_mode_state.cc ('k') | content/browser/zygote_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/chrome_frame_test_utils.cc
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc
index 3975c7033ac3b0a954fca75c209eb3714f023196..397a07be762754a587b0bd9abf235b3a08f89b14 100644
--- a/chrome_frame/test/chrome_frame_test_utils.cc
+++ b/chrome_frame/test/chrome_frame_test_utils.cc
@@ -159,15 +159,19 @@ base::ProcessHandle LaunchExecutable(const std::wstring& executable,
LOG(ERROR) << "Failed to find executable: " << executable;
} else {
CommandLine cmdline = CommandLine::FromString(path);
- if (!base::LaunchApp(cmdline, false, false, &process)) {
- LOG(ERROR) << "LaunchApp failed: " << ::GetLastError();
+ base::LaunchOptions options;
+ options.process_handle = &process;
+ if (!base::LaunchProcess(cmdline, options)) {
+ LOG(ERROR) << "LaunchProcess failed: " << ::GetLastError();
}
}
} else {
CommandLine cmdline((FilePath(path)));
cmdline.AppendArgNative(argument);
- if (!base::LaunchApp(cmdline, false, false, &process)) {
- LOG(ERROR) << "LaunchApp failed: " << ::GetLastError();
+ base::LaunchOptions options;
+ options.process_handle = &process;
+ if (!base::LaunchProcess(cmdline, options)) {
+ LOG(ERROR) << "LaunchProcess failed: " << ::GetLastError();
}
}
return process;
@@ -183,7 +187,9 @@ base::ProcessHandle LaunchChrome(const std::wstring& url) {
cmd.AppendArgNative(url);
base::ProcessHandle process = NULL;
- base::LaunchApp(cmd, false, false, &process);
+ base::LaunchOptions options;
+ options.process_handle = &process;
+ base::LaunchProcess(cmd, options);
return process;
}
@@ -590,8 +596,9 @@ base::ProcessHandle StartCrashService() {
DVLOG(1) << "Starting crash_service.exe so you know if a test crashes!";
FilePath crash_service_path = exe_dir.AppendASCII("crash_service.exe");
- if (!base::LaunchApp(crash_service_path.value(), false, false,
- &crash_service)) {
+ base::LaunchOptions options;
+ options.process_handle = &crash_service;
+ if (!base::LaunchProcess(crash_service_path.value(), options)) {
DLOG(ERROR) << "Couldn't start crash_service.exe";
return NULL;
}
« no previous file with comments | « chrome_frame/ready_mode/internal/registry_ready_mode_state.cc ('k') | content/browser/zygote_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698