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

Unified Diff: chrome_frame/ready_mode/internal/registry_ready_mode_state.cc

Issue 71013004: Base: Remove Receive() from ScopedHandle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix delegate_execute for google_chrome_build Created 7 years, 1 month 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/ui_test_suite.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 0a66e7dd331e223ad040b51cb78a70f8615557fb..bb1dedc17abc67908e12886a06942a296a6cde91 100644
--- a/chrome_frame/ready_mode/internal/registry_ready_mode_state.cc
+++ b/chrome_frame/ready_mode/internal/registry_ready_mode_state.cc
@@ -40,11 +40,11 @@ HANDLE LaunchCommandDirectly(const std::wstring& command_field) {
std::wstring command_line;
if (version_key.ReadValue(command_field.c_str(),
&command_line) == ERROR_SUCCESS) {
- HANDLE launched_process = NULL;
+ base::win::ScopedHandle launched_process;
base::LaunchOptions options;
options.start_hidden = true;
if (base::LaunchProcess(command_line, options, &launched_process)) {
- return launched_process;
+ return launched_process.Take();
}
}
}
« no previous file with comments | « chrome/test/ui/ui_test_suite.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