Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1568)

Unified Diff: chrome/browser/autofill/personal_data_manager.cc

Issue 6286003: Refactoring of upload, form saving, and UMA logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/personal_data_manager.cc
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
index 75f89cec002c5a7f6ad6873d590e47b60bc40b5a..52b4ca7dd233d3b19e47e6e1b443c57f2a4ddb2d 100644
--- a/chrome/browser/autofill/personal_data_manager.cc
+++ b/chrome/browser/autofill/personal_data_manager.cc
@@ -140,7 +140,7 @@ void PersonalDataManager::RemoveObserver(
}
bool PersonalDataManager::ImportFormData(
- const std::vector<FormStructure*>& form_structures) {
+ const std::vector<const FormStructure*>& form_structures) {
// Parse the form and construct a profile based on the information that is
// possible to import.
int importable_fields = 0;
@@ -149,7 +149,7 @@ bool PersonalDataManager::ImportFormData(
// TODO(jhawkins): Use a hash of the CC# instead of a list of unique IDs?
imported_credit_card_.reset(new CreditCard);
- std::vector<FormStructure*>::const_iterator iter;
+ std::vector<const FormStructure*>::const_iterator iter;
for (iter = form_structures.begin(); iter != form_structures.end(); ++iter) {
const FormStructure* form = *iter;
for (size_t i = 0; i < form->field_count(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698