diff options
Diffstat (limited to 'chrome/browser/webdata')
-rw-r--r-- | chrome/browser/webdata/autofill_change.cc | 4 | ||||
-rw-r--r-- | chrome/browser/webdata/autofill_change.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/webdata/autofill_change.cc b/chrome/browser/webdata/autofill_change.cc index 454d7b9..e6bb085 100644 --- a/chrome/browser/webdata/autofill_change.cc +++ b/chrome/browser/webdata/autofill_change.cc @@ -15,7 +15,7 @@ AutofillChange::~AutofillChange() { } AutofillProfileChange::AutofillProfileChange( - Type type, std::string key, const AutofillProfile* profile) + Type type, const std::string& key, const AutofillProfile* profile) : GenericAutofillChange<std::string>(type, key), profile_(profile) { DCHECK(type == ADD ? (profile && profile->guid() == key) : true); @@ -34,7 +34,7 @@ bool AutofillProfileChange::operator==( } AutofillCreditCardChange::AutofillCreditCardChange( - Type type, std::string key, const CreditCard* credit_card) + Type type, const std::string& key, const CreditCard* credit_card) : GenericAutofillChange<std::string>(type, key), credit_card_(credit_card) { DCHECK(type == ADD ? (credit_card && credit_card->guid() == key) : true); DCHECK(type == UPDATE ? (credit_card && credit_card->guid() == key) : true); diff --git a/chrome/browser/webdata/autofill_change.h b/chrome/browser/webdata/autofill_change.h index 297a6a7..079a94a 100644 --- a/chrome/browser/webdata/autofill_change.h +++ b/chrome/browser/webdata/autofill_change.h @@ -54,7 +54,7 @@ class AutofillProfileChange : public GenericAutofillChange<std::string> { // When |type| == UPDATE, |profile| should be non-NULL. // When |type| == REMOVE, |profile| should be NULL. AutofillProfileChange(Type type, - std::string key, + const std::string& key, const AutofillProfile* profile); virtual ~AutofillProfileChange(); @@ -75,7 +75,7 @@ class AutofillCreditCardChange : public GenericAutofillChange<std::string> { // When |type| == UPDATE, |credit_card| should be non-NULL. // When |type| == REMOVE, |credit_card| should be NULL. AutofillCreditCardChange(Type type, - std::string key, + const std::string& key, const CreditCard* credit_card); virtual ~AutofillCreditCardChange(); |