Index: chrome/browser/autofill/credit_card.cc |
diff --git a/chrome/browser/autofill/credit_card.cc b/chrome/browser/autofill/credit_card.cc |
index b85e538a94147d461222afe8fa7e16df4572d8fd..1cd0c133a19e3226a40a42aa61aaf88ad32a3b01 100644 |
--- a/chrome/browser/autofill/credit_card.cc |
+++ b/chrome/browser/autofill/credit_card.cc |
@@ -375,6 +375,9 @@ string16 CreditCard::LastFourDigits() const { |
} |
void CreditCard::operator=(const CreditCard& credit_card) { |
+ if (this == &credit_card) |
+ return; |
+ |
number_ = credit_card.number_; |
name_on_card_ = credit_card.name_on_card_; |
type_ = credit_card.type_; |