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

Side by Side Diff: chrome/common/custom_handlers/protocol_handler.cc

Issue 15981010: Use a direct include of strings headers in chrome/common/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/custom_handlers/protocol_handler.h" 5 #include "chrome/common/custom_handlers/protocol_handler.h"
6 6
7 #include "base/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "net/base/escape.h" 9 #include "net/base/escape.h"
10 10
11 11
12 ProtocolHandler::ProtocolHandler(const std::string& protocol, 12 ProtocolHandler::ProtocolHandler(const std::string& protocol,
13 const GURL& url, 13 const GURL& url,
14 const string16& title) 14 const string16& title)
15 : protocol_(protocol), 15 : protocol_(protocol),
16 url_(url), 16 url_(url),
17 title_(title) { 17 title_(title) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 title_ == other.title_; 86 title_ == other.title_;
87 } 87 }
88 88
89 bool ProtocolHandler::IsEquivalent(const ProtocolHandler& other) const { 89 bool ProtocolHandler::IsEquivalent(const ProtocolHandler& other) const {
90 return protocol_ == other.protocol_ && url_ == other.url_; 90 return protocol_ == other.protocol_ && url_ == other.url_;
91 } 91 }
92 92
93 bool ProtocolHandler::operator<(const ProtocolHandler& other) const { 93 bool ProtocolHandler::operator<(const ProtocolHandler& other) const {
94 return title_ < other.title_; 94 return title_ < other.title_;
95 } 95 }
OLDNEW
« no previous file with comments | « chrome/common/content_settings_pattern_parser.cc ('k') | chrome/common/extensions/api/commands/commands_manifest_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698