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

Unified Diff: printing/backend/win_helper.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: printing/backend/win_helper.h
diff --git a/printing/backend/win_helper.h b/printing/backend/win_helper.h
index 667609d584c0b5fb6b09812647de3c7d2faba823..e9543331a10433ca60cc2602b960fec8b4938a2b 100644
--- a/printing/backend/win_helper.h
+++ b/printing/backend/win_helper.h
@@ -30,6 +30,10 @@ class PrinterHandleTraits {
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