From 61265352c022321d94fc99f59a7dcdd837ee05c6 Mon Sep 17 00:00:00 2001 From: "tsepez@chromium.org" Date: Tue, 8 Mar 2011 17:45:47 +0000 Subject: Convert autofill messages to use the new IPC macros. This requires changing the FormField class to a struct with publically-visible members, which was what should have been done in the first place, instead of the trivial setters/getters which are accessed in various combinations independently of each other throughout the code. Review URL: http://codereview.chromium.org/6633001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77296 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autocomplete_history_manager.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chrome/browser/autocomplete_history_manager.cc') diff --git a/chrome/browser/autocomplete_history_manager.cc b/chrome/browser/autocomplete_history_manager.cc index e93bd8c..bbc3387 100644 --- a/chrome/browser/autocomplete_history_manager.cc +++ b/chrome/browser/autocomplete_history_manager.cc @@ -119,11 +119,11 @@ void AutocompleteHistoryManager::OnFormSubmitted(const FormData& form) { for (std::vector::const_iterator iter = form.fields.begin(); iter != form.fields.end(); ++iter) { - if (!iter->value().empty() && - !iter->name().empty() && - iter->form_control_type() == ASCIIToUTF16("text") && - !CreditCard::IsCreditCardNumber(iter->value()) && - !IsSSN(iter->value())) + if (!iter->value.empty() && + !iter->name.empty() && + iter->form_control_type == ASCIIToUTF16("text") && + !CreditCard::IsCreditCardNumber(iter->value) && + !IsSSN(iter->value)) values.push_back(*iter); } -- cgit v1.1