 Chromium Code Reviews
 Chromium Code Reviews Issue 9625026:
  Save password without an associated username.  (Closed) 
  Base URL: http://src.chromium.org/svn/trunk/src/
    
  
    Issue 9625026:
  Save password without an associated username.  (Closed) 
  Base URL: http://src.chromium.org/svn/trunk/src/| Index: webkit/forms/password_form_dom_manager.h | 
| =================================================================== | 
| --- webkit/forms/password_form_dom_manager.h (revision 130897) | 
| +++ 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. | 
| 
Ilya Sherman
2012/04/19 00:27:37
nit: Wording suggestion:
"""basic_data.fields[0]
 | 
| FormData basic_data; | 
| LoginCollection additional_logins; | 
| bool wait_for_username; |