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

Unified Diff: printing/backend/win_helper.h

Issue 6037019: Fixed a crash with some HP printer drivers (when invoking PTGetPrintCapabilit... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/backend/win_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/win_helper.h
===================================================================
--- printing/backend/win_helper.h (revision 70422)
+++ printing/backend/win_helper.h (working copy)
@@ -58,6 +58,18 @@
static bool InitImpl();
};
+// See comments in cc file explaining why we need this.
+class ScopedXPSInitializer {
+ public:
+ ScopedXPSInitializer();
+ ~ScopedXPSInitializer();
+
+ bool initialized() const { return initialized_; }
+
+ private:
+ bool initialized_;
+};
+
} // namespace printing
#endif // PRINTING_BACKEND_WIN_HELPER_H_
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/backend/win_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698