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..d07ad123a8d60437a281b5e9cdf819559d7bbbf7 100644 |
| --- a/chrome/common/custom_handlers/protocol_handler.cc |
| +++ b/chrome/common/custom_handlers/protocol_handler.cc |
| @@ -83,3 +83,11 @@ bool ProtocolHandler::IsEquivalent(const ProtocolHandler& other) const { |
| bool ProtocolHandler::operator<(const ProtocolHandler& other) const { |
| return title_ < other.title_; |
| } |
| + |
| +std::ostream& operator<<(std::ostream& os, const ProtocolHandler& handler) { |
| + return os << "{ " << |
| + " protocol=" << handler.protocol() << |
| + " url=" << handler.url() << |
| + " title=" << UTF16ToUTF8(handler.title()) << |
| + " }"; |
| +} |
|
benwells
2012/06/22 19:47:48
nit: chrome style is to put the << at the beginnin
|