summaryrefslogtreecommitdiffstats
path: root/components/autofill
diff options
context:
space:
mode:
Diffstat (limited to 'components/autofill')
-rw-r--r--components/autofill/content/browser/wallet/required_action.cc2
-rw-r--r--components/autofill/core/browser/form_structure.cc2
-rw-r--r--components/autofill/core/browser/personal_data_manager.cc9
-rw-r--r--components/autofill/core/common/save_password_progress_logger.cc2
4 files changed, 7 insertions, 8 deletions
diff --git a/components/autofill/content/browser/wallet/required_action.cc b/components/autofill/content/browser/wallet/required_action.cc
index 9516f50..444d91f 100644
--- a/components/autofill/content/browser/wallet/required_action.cc
+++ b/components/autofill/content/browser/wallet/required_action.cc
@@ -35,7 +35,7 @@ bool ActionAppliesToWalletItems(RequiredAction action) {
RequiredAction ParseRequiredActionFromString(const std::string& str) {
std::string str_lower;
- base::TrimWhitespaceASCII(base::StringToLowerASCII(str), base::TRIM_ALL,
+ base::TrimWhitespaceASCII(base::ToLowerASCII(str), base::TRIM_ALL,
&str_lower);
if (str_lower == "setup_wallet")
diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
index 526848f..1b97561 100644
--- a/components/autofill/core/browser/form_structure.cc
+++ b/components/autofill/core/browser/form_structure.cc
@@ -1105,7 +1105,7 @@ void FormStructure::ParseFieldTypesFromAutocompleteAttributes(
// non-space characters (e.g. tab) to spaces, and converting to lowercase.
std::string autocomplete_attribute =
base::CollapseWhitespaceASCII(field->autocomplete_attribute, false);
- autocomplete_attribute = base::StringToLowerASCII(autocomplete_attribute);
+ autocomplete_attribute = base::ToLowerASCII(autocomplete_attribute);
// The autocomplete attribute is overloaded: it can specify either a field
// type hint or whether autocomplete should be enabled at all. Ignore the
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 2e643a8..870b1f6 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -1061,23 +1061,22 @@ bool PersonalDataManager::IsCountryOfInterest(const std::string& country_code)
const std::vector<AutofillProfile*>& profiles = web_profiles();
std::list<std::string> country_codes;
for (size_t i = 0; i < profiles.size(); ++i) {
- country_codes.push_back(base::StringToLowerASCII(base::UTF16ToASCII(
+ country_codes.push_back(base::ToLowerASCII(base::UTF16ToASCII(
profiles[i]->GetRawInfo(ADDRESS_HOME_COUNTRY))));
}
std::string timezone_country = CountryCodeForCurrentTimezone();
if (!timezone_country.empty())
- country_codes.push_back(base::StringToLowerASCII(timezone_country));
+ country_codes.push_back(base::ToLowerASCII(timezone_country));
// Only take the locale into consideration if all else fails.
if (country_codes.empty()) {
- country_codes.push_back(base::StringToLowerASCII(
+ country_codes.push_back(base::ToLowerASCII(
AutofillCountry::CountryCodeForLocale(app_locale())));
}
return std::find(country_codes.begin(), country_codes.end(),
- base::StringToLowerASCII(country_code)) !=
- country_codes.end();
+ base::ToLowerASCII(country_code)) != country_codes.end();
}
const std::string& PersonalDataManager::GetDefaultCountryCodeForNewAddress()
diff --git a/components/autofill/core/common/save_password_progress_logger.cc b/components/autofill/core/common/save_password_progress_logger.cc
index cfa3a58..456289b 100644
--- a/components/autofill/core/common/save_password_progress_logger.cc
+++ b/components/autofill/core/common/save_password_progress_logger.cc
@@ -43,7 +43,7 @@ bool IsUnwantedInElementID(char c) {
std::string ScrubElementID8Bit(std::string element_id) {
std::replace_if(
element_id.begin(), element_id.end(), IsUnwantedInElementID, ' ');
- return base::StringToLowerASCII(element_id);
+ return base::ToLowerASCII(element_id);
}
SavePasswordProgressLogger::StringID FormSchemeToStringID(