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

Unified Diff: chrome/common/custom_handlers/protocol_handler.h

Issue 10559049: Add ToString method for easy DLOG and debug support (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Only include ToString in debug builds. Created 8 years, 6 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/common/custom_handlers/protocol_handler.h
diff --git a/chrome/common/custom_handlers/protocol_handler.h b/chrome/common/custom_handlers/protocol_handler.h
index 8417ae8bfe05856a57cdae3132c26c4266ca34a4..1574a617e3879703bd1b41af396bd571070318b3 100644
--- a/chrome/common/custom_handlers/protocol_handler.h
+++ b/chrome/common/custom_handlers/protocol_handler.h
@@ -54,6 +54,12 @@ class ProtocolHandler {
return protocol_.empty();
}
+# if !defined(NDEBUG)
Peter Kasting 2012/06/22 23:45:48 Nit: No space after # (2 places)
Steve McKay 2012/06/27 22:34:38 Done.
+ // Returns a string representation suitable for use in debugging.
+ std::string ToString() const;
+# endif
+
+
bool operator==(const ProtocolHandler& other) const;
bool operator<(const ProtocolHandler& other) const;
« no previous file with comments | « no previous file | chrome/common/custom_handlers/protocol_handler.cc » ('j') | chrome/common/custom_handlers/protocol_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698