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

Unified Diff: components/autofill/core/browser/autofill_profile.cc

Issue 448853002: Move StringToLowerASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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: components/autofill/core/browser/autofill_profile.cc
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc
index 250b7a17694ca6261956385fac8769028cc7c9b5..56e36700013d41b554d31376a75a20362c96841f 100644
--- a/components/autofill/core/browser/autofill_profile.cc
+++ b/components/autofill/core/browser/autofill_profile.cc
@@ -231,7 +231,7 @@ struct CaseInsensitiveStringEquals {
bool operator()(const base::string16& x) const {
return x.size() == other_.size() &&
- StringToLowerASCII(x) == StringToLowerASCII(other_);
+ base::StringToLowerASCII(x) == base::StringToLowerASCII(other_);
}
private:
@@ -556,8 +556,8 @@ bool AutofillProfile::IsSubsetOf(const AutofillProfile& profile,
app_locale)) {
return false;
}
- } else if (StringToLowerASCII(GetRawInfo(*it)) !=
- StringToLowerASCII(profile.GetRawInfo(*it))) {
+ } else if (base::StringToLowerASCII(GetRawInfo(*it)) !=
+ base::StringToLowerASCII(profile.GetRawInfo(*it))) {
return false;
}
}
@@ -589,8 +589,8 @@ void AutofillProfile::OverwriteOrAppendNames(
AutofillType type = AutofillType(NAME_FULL);
base::string16 full_name = current_name.GetInfo(type, app_locale);
- if (StringToLowerASCII(full_name) ==
- StringToLowerASCII(imported_name.GetInfo(type, app_locale))) {
+ if (base::StringToLowerASCII(full_name) ==
+ base::StringToLowerASCII(imported_name.GetInfo(type, app_locale))) {
// The imported name has the same full name string as one of the
// existing names for this profile. Because full names are
// _heuristically_ parsed into {first, middle, last} name components,
@@ -654,8 +654,8 @@ void AutofillProfile::OverwriteWithOrAddTo(const AutofillProfile& profile,
// Single value field --- overwrite.
if (!AutofillProfile::SupportsMultiValue(*iter)) {
base::string16 new_value = profile.GetRawInfo(*iter);
- if (StringToLowerASCII(GetRawInfo(*iter)) !=
- StringToLowerASCII(new_value)) {
+ if (base::StringToLowerASCII(GetRawInfo(*iter)) !=
+ base::StringToLowerASCII(new_value)) {
SetRawInfo(*iter, new_value);
}
continue;
« no previous file with comments | « components/autofill/core/browser/autofill_field.cc ('k') | components/autofill/core/browser/contact_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698