summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-10 23:25:42 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-10 23:25:42 +0000
commit8eb4fec4b18e3b647e8148d05aec450c19ebcf69 (patch)
tree136a3e8af46971c68560fa52cbc5be782d2414ae /chrome
parentd2ad831ead51f533eb5f3e8cf2ee3263d0c81988 (diff)
downloadchromium_src-8eb4fec4b18e3b647e8148d05aec450c19ebcf69.zip
chromium_src-8eb4fec4b18e3b647e8148d05aec450c19ebcf69.tar.gz
chromium_src-8eb4fec4b18e3b647e8148d05aec450c19ebcf69.tar.bz2
Include auxiliary profiles when crowdsourcing autofill data.
BUG=none TEST=none Review URL: http://codereview.chromium.org/5784001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68906 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/autofill/personal_data_manager.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
index a4475cb..09506b9 100644
--- a/chrome/browser/autofill/personal_data_manager.cc
+++ b/chrome/browser/autofill/personal_data_manager.cc
@@ -558,8 +558,9 @@ void PersonalDataManager::GetPossibleFieldTypes(const string16& text,
return;
}
- for (ScopedVector<AutoFillProfile>::iterator iter = web_profiles_.begin();
- iter != web_profiles_.end(); ++iter) {
+ const std::vector<AutoFillProfile*>& profiles = this->profiles();
+ for (std::vector<AutoFillProfile*>::const_iterator iter = profiles.begin();
+ iter != profiles.end(); ++iter) {
const FormGroup* profile = *iter;
if (!profile) {
DLOG(ERROR) << "NULL information in profiles list";
@@ -580,7 +581,7 @@ void PersonalDataManager::GetPossibleFieldTypes(const string16& text,
credit_card->GetPossibleFieldTypes(clean_info, possible_types);
}
- if (possible_types->size() == 0)
+ if (possible_types->empty())
possible_types->insert(UNKNOWN_TYPE);
}