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

Unified Diff: chrome_frame/ready_mode/internal/registry_ready_mode_state.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/test/ui_test_utils.cc ('k') | chrome_frame/test/chrome_frame_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/ready_mode/internal/registry_ready_mode_state.cc
diff --git a/chrome_frame/ready_mode/internal/registry_ready_mode_state.cc b/chrome_frame/ready_mode/internal/registry_ready_mode_state.cc
index 70a2df42fd07cf47b099b1b9adf4c5dd7827921e..8e5f18398c327726073ae6e535924a3209aa2593 100644
--- a/chrome_frame/ready_mode/internal/registry_ready_mode_state.cc
+++ b/chrome_frame/ready_mode/internal/registry_ready_mode_state.cc
@@ -59,8 +59,12 @@ HANDLE LaunchCommandViaProcessLauncher(const std::wstring& command_field) {
scoped_ptr<CommandLine> command_line(
chrome_launcher::CreateUpdateCommandLine(command_field));
- if (command_line != NULL)
- base::LaunchApp(*command_line, false, true, &launched_process);
+ if (command_line != NULL) {
+ base::LaunchOptions options;
+ options.start_hidden = true;
+ options.process_handle = &launched_process;
+ base::LaunchProcess(*command_line, options);
+ }
return launched_process;
}
« no previous file with comments | « chrome/test/ui_test_utils.cc ('k') | chrome_frame/test/chrome_frame_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698