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

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

Issue 2796873002: Sending autofill types for username fields in sign-in forms for improving username detection. (Closed)
Patch Set: Tiny change Created 3 years, 8 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_manager.cc
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index d599bce07603f84b97bd881bbe88c249078ea123..9279c950364215a351e29882e5f358fae24333d7 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -2007,7 +2007,7 @@ void AutofillManager::DeterminePossibleFieldTypesForUpload(
// profile or credit card, identify any stored types that match the value.
for (size_t i = 0; i < submitted_form->field_count(); ++i) {
AutofillField* field = submitted_form->field(i);
- ServerFieldTypeSet matching_types;
+ ServerFieldTypeSet matching_types = field->possible_types();
Roger McFarlane (Chromium) 2017/04/07 03:20:59 Is there a way to refactor this such that we don't
dvadym 2017/04/07 09:09:01 Yeah, it would look better here, but it looks like
base::string16 value;
base::TrimWhitespace(field->value, base::TRIM_ALL, &value);

Powered by Google App Engine
This is Rietveld 408576698