| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "components/autofill/content/browser/wallet/wallet_items.h" | 5 #include "components/autofill/content/browser/wallet/wallet_items.h" | 
| 6 | 6 | 
| 7 #include "base/logging.h" | 7 #include "base/logging.h" | 
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" | 
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" | 
| 10 #include "base/values.h" | 10 #include "base/values.h" | 
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 307 | 307 | 
| 308   return ResourceBundle::GetSharedInstance().GetImageNamed(idr); | 308   return ResourceBundle::GetSharedInstance().GetImageNamed(idr); | 
| 309 } | 309 } | 
| 310 | 310 | 
| 311 base::string16 WalletItems::MaskedInstrument::GetInfo( | 311 base::string16 WalletItems::MaskedInstrument::GetInfo( | 
| 312     const AutofillType& type, | 312     const AutofillType& type, | 
| 313     const std::string& app_locale) const { | 313     const std::string& app_locale) const { | 
| 314   if (type.group() != CREDIT_CARD) | 314   if (type.group() != CREDIT_CARD) | 
| 315     return address().GetInfo(type, app_locale); | 315     return address().GetInfo(type, app_locale); | 
| 316 | 316 | 
| 317   switch (type.server_type()) { | 317   switch (type.GetStorableType()) { | 
| 318     case CREDIT_CARD_NAME: | 318     case CREDIT_CARD_NAME: | 
| 319       return address().recipient_name(); | 319       return address().recipient_name(); | 
| 320 | 320 | 
| 321     case CREDIT_CARD_NUMBER: | 321     case CREDIT_CARD_NUMBER: | 
| 322       return DisplayName(); | 322       return DisplayName(); | 
| 323 | 323 | 
| 324     case CREDIT_CARD_EXP_4_DIGIT_YEAR: | 324     case CREDIT_CARD_EXP_4_DIGIT_YEAR: | 
| 325       return base::IntToString16(expiration_year()); | 325       return base::IntToString16(expiration_year()); | 
| 326 | 326 | 
| 327     case CREDIT_CARD_VERIFICATION_CODE: | 327     case CREDIT_CARD_VERIFICATION_CODE: | 
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 516          VectorsAreEqual<LegalDocument>(legal_documents(), | 516          VectorsAreEqual<LegalDocument>(legal_documents(), | 
| 517                                         other.legal_documents()); | 517                                         other.legal_documents()); | 
| 518 } | 518 } | 
| 519 | 519 | 
| 520 bool WalletItems::operator!=(const WalletItems& other) const { | 520 bool WalletItems::operator!=(const WalletItems& other) const { | 
| 521   return !(*this == other); | 521   return !(*this == other); | 
| 522 } | 522 } | 
| 523 | 523 | 
| 524 }  // namespace wallet | 524 }  // namespace wallet | 
| 525 }  // namespace autofill | 525 }  // namespace autofill | 
| OLD | NEW | 
|---|