Chromium Code Reviews| Index: chrome/common/custom_handlers/protocol_handler.cc |
| diff --git a/chrome/common/custom_handlers/protocol_handler.cc b/chrome/common/custom_handlers/protocol_handler.cc |
| index 4d61a415c62a3b1650c7044844f3fde115371492..b31facc06e473cf0a5bb134bfafdd401ad923d0e 100644 |
| --- a/chrome/common/custom_handlers/protocol_handler.cc |
| +++ b/chrome/common/custom_handlers/protocol_handler.cc |
| @@ -5,9 +5,11 @@ |
| #include "chrome/common/custom_handlers/protocol_handler.h" |
| #include "base/string_util.h" |
| +#include "base/stringprintf.h" |
|
Peter Kasting
2012/06/22 23:45:48
Nit: This include not needed
Steve McKay
2012/06/27 22:34:38
Done.
|
| #include "base/utf_string_conversions.h" |
| #include "net/base/escape.h" |
| + |
| ProtocolHandler::ProtocolHandler(const std::string& protocol, |
| const GURL& url, |
| const string16& title) |
| @@ -70,6 +72,15 @@ DictionaryValue* ProtocolHandler::Encode() const { |
| return d; |
| } |
| +# 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.
|
| +std::string ProtocolHandler::ToString() const { |
| + return "{ protocol=" + protocol_ + |
| + ", url=" + url_.spec() + |
| + ", title=" + UTF16ToASCII(title_) + |
| + " }"; |
| +} |
| +# endif |
| + |
| bool ProtocolHandler::operator==(const ProtocolHandler& other) const { |
| return protocol_ == other.protocol_ && |
| url_ == other.url_ && |