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

Unified Diff: remoting/base/scoped_sc_handle_win.h

Issue 9700038: ScopedProcessInformation protects against process/thread handle leaks from CreateProcess calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove changes from another CL. Created 8 years, 9 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: remoting/base/scoped_sc_handle_win.h
diff --git a/remoting/base/scoped_sc_handle_win.h b/remoting/base/scoped_sc_handle_win.h
index 508f5f5d4c6b93f6ffe3386764a1b77ee1bb773d..6de5f257fa56011933985355d845dea00652fd48 100644
--- a/remoting/base/scoped_sc_handle_win.h
+++ b/remoting/base/scoped_sc_handle_win.h
@@ -25,6 +25,11 @@ class ScHandleTraits {
return handle != NULL;
}
+ // Returns true if the handles are the same.
+ static bool IsSame(SC_HANDLE lhs, SC_HANDLE rhs) {
+ return lhs == rhs;
+ }
+
// Returns NULL handle value.
static SC_HANDLE NullHandle() {
return NULL;

Powered by Google App Engine
This is Rietveld 408576698