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

Unified Diff: trunk/src/components/omnibox/autocomplete_input.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/components/omnibox/autocomplete_input.cc
===================================================================
--- trunk/src/components/omnibox/autocomplete_input.cc (revision 289319)
+++ trunk/src/components/omnibox/autocomplete_input.cc (working copy)
@@ -169,7 +169,7 @@
if (!canonicalized_url->is_valid())
return metrics::OmniboxInputType::QUERY;
- if (base::LowerCaseEqualsASCII(parsed_scheme_utf8, url::kFileScheme)) {
+ if (LowerCaseEqualsASCII(parsed_scheme_utf8, url::kFileScheme)) {
// A user might or might not type a scheme when entering a file URL. In
// either case, |parsed_scheme_utf8| will tell us that this is a file URL,
// but |parts->scheme| might be empty, e.g. if the user typed "C:\foo".
@@ -183,8 +183,8 @@
// (e.g. "ftp" or "view-source") but I'll wait to spend the effort on that
// until I run into some cases that really need it.
if (parts->scheme.is_nonempty() &&
- !base::LowerCaseEqualsASCII(parsed_scheme_utf8, url::kHttpScheme) &&
- !base::LowerCaseEqualsASCII(parsed_scheme_utf8, url::kHttpsScheme)) {
+ !LowerCaseEqualsASCII(parsed_scheme_utf8, url::kHttpScheme) &&
+ !LowerCaseEqualsASCII(parsed_scheme_utf8, url::kHttpsScheme)) {
metrics::OmniboxInputType::Type type =
scheme_classifier.GetInputTypeForScheme(parsed_scheme_utf8);
if (type != metrics::OmniboxInputType::INVALID)
@@ -422,7 +422,7 @@
int after_scheme_and_colon = parts.scheme.end() + 1;
// For the view-source scheme, we should emphasize the scheme and host of the
// URL qualified by the view-source prefix.
- if (base::LowerCaseEqualsASCII(scheme_str, kViewSourceScheme) &&
+ if (LowerCaseEqualsASCII(scheme_str, kViewSourceScheme) &&
(static_cast<int>(text.length()) > after_scheme_and_colon)) {
// Obtain the URL prefixed by view-source and parse it.
base::string16 real_url(text.substr(after_scheme_and_colon));
@@ -444,7 +444,7 @@
host->reset();
}
}
- } else if (base::LowerCaseEqualsASCII(scheme_str, url::kFileSystemScheme) &&
+ } else if (LowerCaseEqualsASCII(scheme_str, url::kFileSystemScheme) &&
parts.inner_parsed() && parts.inner_parsed()->scheme.is_valid()) {
*host = parts.inner_parsed()->host;
}

Powered by Google App Engine
This is Rietveld 408576698