summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete_history_manager.cc
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-08 17:55:12 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-08 17:55:12 +0000
commiteeb7bdff95f4db2384885384ca56ce05494027fb (patch)
tree862af95695e6d1e414054bb3b6cb6b71210bab39 /chrome/browser/autocomplete_history_manager.cc
parenteaa4226c0d2c9d8d108fbbb698408c087a43874a (diff)
downloadchromium_src-eeb7bdff95f4db2384885384ca56ce05494027fb.zip
chromium_src-eeb7bdff95f4db2384885384ca56ce05494027fb.tar.gz
chromium_src-eeb7bdff95f4db2384885384ca56ce05494027fb.tar.bz2
Revert 77296 -
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 TBR=tsepez@chromium.org Review URL: http://codereview.chromium.org/6623086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77298 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 bbc3387..e93bd8c 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);
}