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

Unified Diff: chrome/service/cloud_print/print_system_win.cc

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: chrome/service/cloud_print/print_system_win.cc
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 6b1d5df817e343ae2e1d7427f5ed48e4cdedc66f..2fc609ed9a78de268d2811c14b0b15d1757ed497 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -45,6 +45,10 @@ class PrinterChangeHandleTraits {
return handle != NULL;
}
+ static bool IsSame(HANDLE lhs, HANDLE rhs) {
+ return lhs == rhs;
+ }
+
static HANDLE NullHandle() {
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698