summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete_history_manager.cc
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-08 17:45:47 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-08 17:45:47 +0000
commit61265352c022321d94fc99f59a7dcdd837ee05c6 (patch)
tree85ab4e5c528ca1a63f9c75609f7f9ff9eda7621c /chrome/browser/autocomplete_history_manager.cc
parent368f3a7502802277d24d219c2ed0fdac09f36470 (diff)
downloadchromium_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.cc10
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);
}