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

Unified Diff: components/url_fixer/url_fixer.cc

Issue 1200053004: Move more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/url_fixer/url_fixer.cc
diff --git a/components/url_fixer/url_fixer.cc b/components/url_fixer/url_fixer.cc
index f20159d2532919dfb507c38f2df145a4aff0cbe2..7c0427259df22d391779cd54a29e770cea785a61 100644
--- a/components/url_fixer/url_fixer.cc
+++ b/components/url_fixer/url_fixer.cc
@@ -343,7 +343,7 @@ bool HasPort(const std::string& original_text,
// Scan the range to see if it is entirely digits.
for (size_t i = port_start; i < port_end; ++i) {
- if (!IsAsciiDigit(original_text[i]))
+ if (!base::IsAsciiDigit(original_text[i]))
return false;
}
@@ -467,7 +467,8 @@ std::string SegmentURLInternal(std::string* text, url::Parsed* parts) {
// We need to add a scheme in order for ParseStandardURL to be happy.
// Find the first non-whitespace character.
std::string::iterator first_nonwhite = text->begin();
- while ((first_nonwhite != text->end()) && IsWhitespace(*first_nonwhite))
+ while ((first_nonwhite != text->end()) &&
+ base::IsUnicodeWhitespace(*first_nonwhite))
++first_nonwhite;
// Construct the text to parse by inserting the scheme.

Powered by Google App Engine
This is Rietveld 408576698