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

Unified Diff: base/process_util_win.cc

Issue 3781009: Move the windows-specific scoped_* stuff from base to base/win and in the bas... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
Index: base/process_util_win.cc
===================================================================
--- base/process_util_win.cc (revision 62694)
+++ base/process_util_win.cc (working copy)
@@ -16,8 +16,8 @@
#include "base/debug_util.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
-#include "base/scoped_handle_win.h"
#include "base/scoped_ptr.h"
+#include "base/win/scoped_handle.h"
#include "base/win/windows_version.h"
// userenv.dll is required for CreateEnvironmentBlock().
@@ -163,7 +163,7 @@
&process_token))
return false;
- ScopedHandle scoped_process_token(process_token);
+ base::win::ScopedHandle scoped_process_token(process_token);
DWORD token_info_length = 0;
if (GetTokenInformation(process_token, TokenIntegrityLevel, NULL, 0,
@@ -326,8 +326,8 @@
}
// Ensure we don't leak the handles.
- ScopedHandle scoped_out_read(out_read);
- ScopedHandle scoped_out_write(out_write);
+ base::win::ScopedHandle scoped_out_read(out_read);
+ base::win::ScopedHandle scoped_out_write(out_write);
// Ensure the read handle to the pipe for STDOUT is not inherited.
if (!SetHandleInformation(out_read, HANDLE_FLAG_INHERIT, 0)) {
« no previous file with comments | « base/file_util_win.cc ('k') | base/scoped_bstr_win.h » ('j') | base/win/scoped_comptr.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698