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

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

Issue 2906383003: Teach PasswordAutofillAgent sometimes match prefixes of usernames (Closed)
Patch Set: dvadym@ comments Created 3 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 a242d655fc00f162453e80ea8e06b3c6e96e8b5f..19b6f27cfb233f598bbf10fbf959228b5cc28674 100644
--- a/components/password_manager/core/browser/password_autofill_manager.cc
+++ b/components/password_manager/core/browser/password_autofill_manager.cc
@@ -79,8 +79,8 @@ void AppendSuggestionIfMatching(
show_all || base::StartsWith(lower_suggestion, lower_contents,
base::CompareCase::SENSITIVE);
if (prefix_matched_suggestion ||
- autofill::FieldIsSuggestionSubstringStartingOnTokenBoundary(
- lower_suggestion, lower_contents, true)) {
+ autofill::IsSubstringStartingOnTokenBoundary(lower_suggestion,
+ lower_contents, true)) {
autofill::Suggestion suggestion(ReplaceEmptyUsername(field_suggestion));
suggestion.label = GetHumanReadableRealm(signon_realm);
suggestion.frontend_id = is_password_field

Powered by Google App Engine
This is Rietveld 408576698