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

Unified Diff: components/autofill/core/browser/field_types.h

Issue 23432002: Generate passwords only for forms that autofill server marks as account creation forms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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/field_types.h
diff --git a/components/autofill/core/browser/field_types.h b/components/autofill/core/browser/field_types.h
index 081a7a75c42c092b4200d7b1806410d98b1b6ae5..96c450328da070ba15efd6c59e8db16eb68098ca 100644
--- a/components/autofill/core/browser/field_types.h
+++ b/components/autofill/core/browser/field_types.h
@@ -99,10 +99,19 @@ enum ServerFieldType {
NAME_BILLING_FULL = 71,
NAME_BILLING_SUFFIX = 72,
+ // Field types for options generally found in merchant buyflows. Given that
+ // these are likely to be filled out differently on a case by case basis,
+ // they are here primarly for use by Autocheckout.
Garrett Casto 2013/08/29 22:45:13 Were these changes that had been made on the serve
zysxqn 2013/09/03 23:00:20 Yes.
+ MERCHANT_EMAIL_SIGNUP = 73,
+ MERCHANT_PROMO_CODE = 74,
Ilya Sherman 2013/08/29 23:08:13 Why are these being added as part of this CL? The
zysxqn 2013/09/03 23:00:20 They have been added on the server side but haven'
+
+ PASSWORD = 75,
Garrett Casto 2013/08/29 22:45:13 These probably deserve a comment. Something like "
zysxqn 2013/09/03 23:00:20 Done.
+ ACCOUNT_CREATION_PASSWORD = 76,
Ilya Sherman 2013/08/29 23:08:13 Seems like PASSWORD should be less generic given t
Ilya Sherman 2013/08/29 23:08:13 Have these changes already been made on the server
zysxqn 2013/09/03 23:00:20 I think it is by design. We will vote a password f
zysxqn 2013/09/03 23:00:20 Yes.
+
// No new types can be added without a corresponding change to the Autofill
// server.
- MAX_VALID_FIELD_TYPE = 73,
+ MAX_VALID_FIELD_TYPE = 77,
};
// The list of all HTML autocomplete field type hints supported by Chrome.
@@ -181,6 +190,7 @@ enum FieldTypeGroup {
PHONE_HOME,
PHONE_BILLING,
CREDIT_CARD,
+ PASSWORD_FIELD,
Ilya Sherman 2013/08/29 23:08:13 nit: This would be a more appropriate place to use
zysxqn 2013/09/03 23:00:20 See my comments above. Are you fine with leave it
};
typedef std::set<ServerFieldType> ServerFieldTypeSet;

Powered by Google App Engine
This is Rietveld 408576698