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

Unified Diff: chrome/common/net/url_fixer_upper.cc

Issue 105473003: Add explicit base namespace to string16 users. (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/common/net/url_fixer_upper.h ('k') | chrome/common/net/url_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_fixer_upper.cc
diff --git a/chrome/common/net/url_fixer_upper.cc b/chrome/common/net/url_fixer_upper.cc
index 8c074ee75f7ce4369472736654c78d7a404566fe..ae917e2ec47575fdb19461c5fbfc3486784599bc 100644
--- a/chrome/common/net/url_fixer_upper.cc
+++ b/chrome/common/net/url_fixer_upper.cc
@@ -40,8 +40,9 @@ url_parse::Component UTF8ComponentToUTF16Component(
text_utf8.substr(0, component_utf8.begin);
std::string component_string = text_utf8.substr(component_utf8.begin,
component_utf8.len);
- string16 before_component_string_16 = UTF8ToUTF16(before_component_string);
- string16 component_string_16 = UTF8ToUTF16(component_string);
+ base::string16 before_component_string_16 =
+ UTF8ToUTF16(before_component_string);
+ base::string16 component_string_16 = UTF8ToUTF16(component_string);
url_parse::Component component_16(before_component_string_16.length(),
component_string_16.length());
return component_16;
@@ -80,8 +81,8 @@ TrimPositions TrimWhitespaceUTF8(const std::string& input,
// twice. Please feel free to file a bug if this function hurts the
// performance of Chrome.
DCHECK(IsStringUTF8(input));
- string16 input16 = UTF8ToUTF16(input);
- string16 output16;
+ base::string16 input16 = UTF8ToUTF16(input);
+ base::string16 output16;
TrimPositions result = TrimWhitespace(input16, positions, &output16);
*output = UTF16ToUTF8(output16);
return result;
@@ -483,8 +484,8 @@ std::string URLFixerUpper::SegmentURL(const std::string& text,
return SegmentURLInternal(&mutable_text, parts);
}
-string16 URLFixerUpper::SegmentURL(const string16& text,
- url_parse::Parsed* parts) {
+base::string16 URLFixerUpper::SegmentURL(const base::string16& text,
+ url_parse::Parsed* parts) {
std::string text_utf8 = UTF16ToUTF8(text);
url_parse::Parsed parts_utf8;
std::string scheme_utf8 = SegmentURL(text_utf8, &parts_utf8);
« no previous file with comments | « chrome/common/net/url_fixer_upper.h ('k') | chrome/common/net/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698