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

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

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's comments addressed Created 5 years, 9 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_type.cc
diff --git a/components/autofill/core/browser/autofill_type.cc b/components/autofill/core/browser/autofill_type.cc
index 276e1754e673cf4935e98e619690763d7c9e67f6..b1e8930adbb8a9039378813a2ab346ea1bc3f1a0 100644
--- a/components/autofill/core/browser/autofill_type.cc
+++ b/components/autofill/core/browser/autofill_type.cc
@@ -137,6 +137,10 @@ FieldTypeGroup AutofillType::group() const {
NOTREACHED();
return NO_GROUP;
+ case USERNAME:
+ case USERNAME_AND_EMAIL_ADDRESS:
Garrett Casto 2015/03/24 01:31:12 The fact that this doesn't return EMAIL might brea
dvadym 2015/03/24 16:38:49 Ok, USERNAME_AND_EMAIL_ADDRESS -> EMAIL group
+ return USERNAME_FIELD;
+
case UNKNOWN_TYPE:
break;
}
@@ -613,6 +617,10 @@ std::string AutofillType::ToString() const {
return "ADDRESS_BILLING_DEPENDENT_LOCALITY";
case NOT_ACCOUNT_CREATION_PASSWORD:
return "NOT_ACCOUNT_CREATION_PASSWORD";
+ case USERNAME:
+ return "USERNAME";
+ case USERNAME_AND_EMAIL_ADDRESS:
+ return "USERNAME_AND_EMAIL_ADDRESS";
case MAX_VALID_FIELD_TYPE:
return std::string();

Powered by Google App Engine
This is Rietveld 408576698