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

Unified Diff: webkit/forms/password_form_dom_manager.h

Issue 9625026: Save password without an associated username. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Refine the unit_test codes Created 8 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: webkit/forms/password_form_dom_manager.h
===================================================================
--- webkit/forms/password_form_dom_manager.h (revision 133421)
+++ webkit/forms/password_form_dom_manager.h (working copy)
@@ -30,6 +30,11 @@
struct WEBKIT_FORMS_EXPORT PasswordFormFillData {
typedef std::map<string16, string16> LoginCollection;
+ // You should set a password basic_data.fields[0].
+ // If there's a username, you should set the username basic_data.fields[1].
+ // So, If basic_data.size() == 2, we judge it has username and password.
+ // And, basic_data.size() == 1, we judge it has only password.
+ // Otherwise, we supporse that it has wrong datas.
FormData basic_data;
LoginCollection additional_logins;
bool wait_for_username;

Powered by Google App Engine
This is Rietveld 408576698