summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/personal_data_manager.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 00:28:03 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 00:28:03 +0000
commit8fee844e924295356c75ac88d20dd8e48638da3a (patch)
treecd6c3f572db961e7358ae4c38cebb607d7aa4c01 /chrome/browser/autofill/personal_data_manager.h
parentf1cac0efc19086ef04f25b91b6c525da8e96f9f2 (diff)
downloadchromium_src-8fee844e924295356c75ac88d20dd8e48638da3a.zip
chromium_src-8fee844e924295356c75ac88d20dd8e48638da3a.tar.gz
chromium_src-8fee844e924295356c75ac88d20dd8e48638da3a.tar.bz2
Autofill deprecate unique_ids in favor of guids for DOMUI
Removes use of labels and unique_ids in the Autofill options handler in DOMUI. BUG=58813 TEST=Manual tests with DOMUI: Add, Update, and Delete both addresses and credit cards. Review URL: http://codereview.chromium.org/4145008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager.h')
-rw-r--r--chrome/browser/autofill/personal_data_manager.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.h b/chrome/browser/autofill/personal_data_manager.h
index 9ba06a9..5499903 100644
--- a/chrome/browser/autofill/personal_data_manager.h
+++ b/chrome/browser/autofill/personal_data_manager.h
@@ -106,12 +106,12 @@ class PersonalDataManager
// Updates |profile| which already exists in the web database.
void UpdateProfile(const AutoFillProfile& profile);
- // Removes the profile represented by |unique_id|.
- void RemoveProfile(int unique_id);
+ // Removes the profile represented by |guid|.
+ void RemoveProfile(const std::string& guid);
- // Returns the profile with the specified |unique_id|, or NULL if there is no
- // profile with the specified |unique_id|.
- AutoFillProfile* GetProfileById(int unique_id);
+ // Returns the profile with the specified |guid|, or NULL if there is no
+ // profile with the specified |guid|.
+ AutoFillProfile* GetProfileByGUID(const std::string& guid);
// Adds |credit_card| to the web database.
void AddCreditCard(const CreditCard& credit_card);
@@ -119,12 +119,12 @@ class PersonalDataManager
// Updates |credit_card| which already exists in the web database.
void UpdateCreditCard(const CreditCard& credit_card);
- // Removes the credit card represented by |unique_id|.
- void RemoveCreditCard(int unique_id);
+ // Removes the credit card represented by |guid|.
+ void RemoveCreditCard(const std::string& guid);
- // Returns the credit card with the specified |unique_id|, or NULL if there is
- // no credit card with the specified |unique_id|.
- CreditCard* GetCreditCardById(int unique_id);
+ // Returns the credit card with the specified |guid|, or NULL if there is
+ // no credit card with the specified |guid|.
+ CreditCard* GetCreditCardByGUID(const std::string& guid);
// Gets the possible field types for the given text, determined by matching
// the text with all known personal information and returning matching types.