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

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

Issue 2949002: Add "save credit card info?" infobar for Autofill.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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.h
===================================================================
--- chrome/browser/autofill/personal_data_manager.h (revision 51878)
+++ chrome/browser/autofill/personal_data_manager.h (working copy)
@@ -56,11 +56,10 @@
// Removes |observer| as the observer of this PersonalDataManager.
virtual void RemoveObserver(PersonalDataManager::Observer* observer);
- // If AutoFill is able to determine the field types of a significant number
- // of field types that contain information in the FormStructures and the user
- // has not previously been prompted, the user will be asked if he would like
- // to import the data. If the user selects yes, a profile will be created
- // with all of the information from recognized fields.
+ // If AutoFill is able to determine the field types of a significant number of
+ // field types that contain information in the FormStructures a profile will
+ // be created with all of the information from recognized fields. Returns
+ // whether a profile was created.
bool ImportFormData(const std::vector<FormStructure*>& form_structures,
AutoFillManager* autofill_manager);
@@ -72,6 +71,9 @@
// data, we should store the profile and CC in the AFM instead of the PDM.
void GetImportedFormData(AutoFillProfile** profile, CreditCard** credit_card);
+ // Saves a credit card value detected in |ImportedFormData|.
+ void SaveImportedCreditCard();
+
// Sets |web_profiles_| to the contents of |profiles| and updates the web
// database by adding, updating and removing profiles. Sets the unique ID of
// newly-added profiles.
@@ -189,7 +191,6 @@
void SetUniqueCreditCardLabels(std::vector<CreditCard>* credit_cards);
// Saves |imported_profile_| to the WebDB if it exists.
- // TODO(jhawkins): SaveImportedCreditCard.
void SaveImportedProfile();
// The profile hosting this PersonalDataManager.

Powered by Google App Engine
This is Rietveld 408576698