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

Unified Diff: chrome/browser/autofill/password_autofill_manager.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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: chrome/browser/autofill/password_autofill_manager.cc
diff --git a/chrome/browser/autofill/password_autofill_manager.cc b/chrome/browser/autofill/password_autofill_manager.cc
index d05ec84c3283f6d66462b63757e415220ff4ea45..f7f36d0c36395d7db9772f9a1d1210e3dee4aa6d 100644
--- a/chrome/browser/autofill/password_autofill_manager.cc
+++ b/chrome/browser/autofill/password_autofill_manager.cc
@@ -19,9 +19,9 @@ PasswordAutofillManager::~PasswordAutofillManager() {
}
bool PasswordAutofillManager::DidAcceptAutofillSuggestion(
- const webkit::forms::FormField& field,
+ const FormFieldData& field,
const string16& value) {
- webkit::forms::PasswordFormFillData password;
+ PasswordFormFillData password;
if (!FindLoginInfo(field, &password))
return false;
@@ -40,8 +40,8 @@ bool PasswordAutofillManager::DidAcceptAutofillSuggestion(
}
void PasswordAutofillManager::AddPasswordFormMapping(
- const webkit::forms::FormField& username_element,
- const webkit::forms::PasswordFormFillData& password) {
+ const FormFieldData& username_element,
+ const PasswordFormFillData& password) {
login_to_password_info_[username_element] = password;
}
@@ -54,13 +54,13 @@ void PasswordAutofillManager::Reset() {
bool PasswordAutofillManager::WillFillUserNameAndPassword(
const string16& current_username,
- const webkit::forms::PasswordFormFillData& fill_data) {
+ const PasswordFormFillData& fill_data) {
// Look for any suitable matches to current field text.
if (fill_data.basic_data.fields[0].value == current_username) {
return true;
} else {
// Scan additional logins for a match.
- webkit::forms::PasswordFormFillData::LoginCollection::const_iterator iter;
+ PasswordFormFillData::LoginCollection::const_iterator iter;
for (iter = fill_data.additional_logins.begin();
iter != fill_data.additional_logins.end(); ++iter) {
if (iter->first == current_username)
@@ -72,8 +72,8 @@ bool PasswordAutofillManager::WillFillUserNameAndPassword(
}
bool PasswordAutofillManager::FindLoginInfo(
- const webkit::forms::FormField& field,
- webkit::forms::PasswordFormFillData* found_password) {
+ const FormFieldData& field,
+ PasswordFormFillData* found_password) {
LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(field);
if (iter == login_to_password_info_.end())
return false;
« no previous file with comments | « chrome/browser/autofill/password_autofill_manager.h ('k') | chrome/browser/autofill/password_autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698