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

Unified Diff: components/autofill/core/common/password_form.h

Issue 459103005: Introduce new PasswordForm attributes for Credential Management API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mike's comment Created 6 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/common/password_form.h
diff --git a/components/autofill/core/common/password_form.h b/components/autofill/core/common/password_form.h
index fa8ffd01aef31a88d5bec512db35e4aafdfb3774..645d1c7bca07d91a004c51b1b5703b3691b7be77 100644
--- a/components/autofill/core/common/password_form.h
+++ b/components/autofill/core/common/password_form.h
@@ -206,6 +206,22 @@ struct PasswordForm {
// When parsing an HTML form, this is normally set.
FormData form_data;
+ // These following fields are set by a website using the Credential Manager
+ // API. They will be empty and remain unused for sites which do not use that
+ // API.
+ //
+ // User friendly name to show in the UI.
+ base::string16 display_name;
+
+ // The URL of the user's avatar to display in the UI.
+ GURL avatar_url;
+
+ // The URL of identity provider used for federated login.
+ GURL federation_url;
+
+ // If true, Chrome will sign the user in automatically using the credentials.
+ bool is_zero_click;
+
// Returns true if this match was found using public suffix matching.
bool IsPublicSuffixMatch() const;
« no previous file with comments | « chrome/browser/password_manager/password_store_mac_unittest.cc ('k') | components/autofill/core/common/password_form.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698