| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/password_form_fill_data.h" | 5 #include "components/autofill/common/password_form_fill_data.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/common/form_field_data.h" | 8 #include "components/autofill/common/form_field_data.h" |
| 9 | 9 |
| 10 PasswordFormFillData::PasswordFormFillData() : wait_for_username(false) { | 10 PasswordFormFillData::PasswordFormFillData() : wait_for_username(false) { |
| 11 } | 11 } |
| 12 | 12 |
| 13 PasswordFormFillData::~PasswordFormFillData() { | 13 PasswordFormFillData::~PasswordFormFillData() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 void InitPasswordFormFillData( | 16 void InitPasswordFormFillData( |
| 17 const content::PasswordForm& form_on_page, | 17 const content::PasswordForm& form_on_page, |
| 18 const content::PasswordFormMap& matches, | 18 const content::PasswordFormMap& matches, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 result->basic_data.fields.push_back(password_field); | 36 result->basic_data.fields.push_back(password_field); |
| 37 result->wait_for_username = wait_for_username_before_autofill; | 37 result->wait_for_username = wait_for_username_before_autofill; |
| 38 | 38 |
| 39 // Copy additional username/value pairs. | 39 // Copy additional username/value pairs. |
| 40 content::PasswordFormMap::const_iterator iter; | 40 content::PasswordFormMap::const_iterator iter; |
| 41 for (iter = matches.begin(); iter != matches.end(); iter++) { | 41 for (iter = matches.begin(); iter != matches.end(); iter++) { |
| 42 if (iter->second != preferred_match) | 42 if (iter->second != preferred_match) |
| 43 result->additional_logins[iter->first] = iter->second->password_value; | 43 result->additional_logins[iter->first] = iter->second->password_value; |
| 44 } | 44 } |
| 45 } | 45 } |
| OLD | NEW |