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

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: Rebase 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..15ca1ec429e02dba7c13e61b2f0140c7c79ed0f4 100644
--- a/components/autofill/core/browser/autofill_type.cc
+++ b/components/autofill/core/browser/autofill_type.cc
@@ -60,6 +60,7 @@ FieldTypeGroup AutofillType::group() const {
return NAME_BILLING;
case EMAIL_ADDRESS:
+ case USERNAME_AND_EMAIL_ADDRESS:
return EMAIL;
case PHONE_HOME_NUMBER:
@@ -137,6 +138,9 @@ FieldTypeGroup AutofillType::group() const {
NOTREACHED();
return NO_GROUP;
+ case USERNAME:
+ 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();
« no previous file with comments | « components/autofill/core/browser/autofill_profile.cc ('k') | components/autofill/core/browser/field_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698