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

Unified Diff: chrome/browser/autocomplete/url_prefix.cc

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « chrome/browser/autocomplete/url_prefix.h ('k') | chrome/browser/autocomplete/zero_suggest_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/url_prefix.cc
diff --git a/chrome/browser/autocomplete/url_prefix.cc b/chrome/browser/autocomplete/url_prefix.cc
index 9174bd561cee68f36409dc57d428bd88cb42e9cb..d48ee35dc6b9e0d3bf583c1974b7179396b6f335 100644
--- a/chrome/browser/autocomplete/url_prefix.cc
+++ b/chrome/browser/autocomplete/url_prefix.cc
@@ -8,7 +8,7 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
-URLPrefix::URLPrefix(const string16& prefix, size_t num_components)
+URLPrefix::URLPrefix(const base::string16& prefix, size_t num_components)
: prefix(prefix),
num_components(num_components) {
}
@@ -30,7 +30,7 @@ const URLPrefixes& URLPrefix::GetURLPrefixes() {
}
// static
-bool URLPrefix::IsURLPrefix(const string16& prefix) {
+bool URLPrefix::IsURLPrefix(const base::string16& prefix) {
const URLPrefixes& list = GetURLPrefixes();
for (URLPrefixes::const_iterator i = list.begin(); i != list.end(); ++i)
if (i->prefix == prefix)
@@ -39,8 +39,8 @@ bool URLPrefix::IsURLPrefix(const string16& prefix) {
}
// static
-const URLPrefix* URLPrefix::BestURLPrefix(const string16& text,
- const string16& prefix_suffix) {
+const URLPrefix* URLPrefix::BestURLPrefix(const base::string16& text,
+ const base::string16& prefix_suffix) {
const URLPrefixes& list = GetURLPrefixes();
for (URLPrefixes::const_iterator i = list.begin(); i != list.end(); ++i)
if (StartsWith(text, i->prefix + prefix_suffix, false))
« no previous file with comments | « chrome/browser/autocomplete/url_prefix.h ('k') | chrome/browser/autocomplete/zero_suggest_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698