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

Unified Diff: components/password_manager/core/browser/password_autofill_manager.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger 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/password_manager/core/browser/password_autofill_manager.cc
diff --git a/components/password_manager/core/browser/password_autofill_manager.cc b/components/password_manager/core/browser/password_autofill_manager.cc
index d585a4778b187c4dcb378bf35e58cdc45e316c02..a9b6644d8d25ad3f018facdf2255edffb8cd2694 100644
--- a/components/password_manager/core/browser/password_autofill_manager.cc
+++ b/components/password_manager/core/browser/password_autofill_manager.cc
@@ -64,8 +64,8 @@ void GetSuggestions(const autofill::PasswordFormFillData& fill_data,
const base::string16& current_username,
std::vector<autofill::Suggestion>* suggestions,
bool show_all) {
- if (show_all ||
- StartsWith(fill_data.username_field.value, current_username, false)) {
+ if (show_all || base::StartsWith(fill_data.username_field.value,
+ current_username, false)) {
autofill::Suggestion suggestion(
ReplaceEmptyUsername(fill_data.username_field.value));
suggestion.label = GetHumanReadableRealm(fill_data.preferred_realm);
@@ -74,7 +74,7 @@ void GetSuggestions(const autofill::PasswordFormFillData& fill_data,
}
for (const auto& login : fill_data.additional_logins) {
- if (show_all || StartsWith(login.first, current_username, false)) {
+ if (show_all || base::StartsWith(login.first, current_username, false)) {
autofill::Suggestion suggestion(ReplaceEmptyUsername(login.first));
suggestion.label = GetHumanReadableRealm(login.second.realm);
suggestion.frontend_id = autofill::POPUP_ITEM_ID_PASSWORD_ENTRY;
@@ -85,7 +85,7 @@ void GetSuggestions(const autofill::PasswordFormFillData& fill_data,
for (const auto& usernames : fill_data.other_possible_usernames) {
for (size_t i = 0; i < usernames.second.size(); ++i) {
if (show_all ||
- StartsWith(usernames.second[i], current_username, false)) {
+ base::StartsWith(usernames.second[i], current_username, false)) {
autofill::Suggestion suggestion(
ReplaceEmptyUsername(usernames.second[i]));
suggestion.label = GetHumanReadableRealm(usernames.first.realm);

Powered by Google App Engine
This is Rietveld 408576698