diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 17:45:47 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 17:45:47 +0000 |
commit | 61265352c022321d94fc99f59a7dcdd837ee05c6 (patch) | |
tree | 85ab4e5c528ca1a63f9c75609f7f9ff9eda7621c /chrome/browser/autocomplete_history_manager.cc | |
parent | 368f3a7502802277d24d219c2ed0fdac09f36470 (diff) | |
download | chromium_src-61265352c022321d94fc99f59a7dcdd837ee05c6.zip chromium_src-61265352c022321d94fc99f59a7dcdd837ee05c6.tar.gz chromium_src-61265352c022321d94fc99f59a7dcdd837ee05c6.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/autocomplete_history_manager.cc')
-rw-r--r-- | chrome/browser/autocomplete_history_manager.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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<webkit_glue::FormField>::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); } |