| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/wallet/wallet_items.h" | 5 #include "components/autofill/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/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 if (AutofillType(type).group() != AutofillType::CREDIT_CARD) | 319 if (AutofillType(type).group() != AutofillType::CREDIT_CARD) |
| 320 return address().GetInfo(type, app_locale); | 320 return address().GetInfo(type, app_locale); |
| 321 | 321 |
| 322 switch (type) { | 322 switch (type) { |
| 323 case CREDIT_CARD_NAME: | 323 case CREDIT_CARD_NAME: |
| 324 return address().recipient_name(); | 324 return address().recipient_name(); |
| 325 | 325 |
| 326 case CREDIT_CARD_NUMBER: | 326 case CREDIT_CARD_NUMBER: |
| 327 return DisplayName(); | 327 return DisplayName(); |
| 328 | 328 |
| 329 case CREDIT_CARD_EXP_MONTH: |
| 330 return base::IntToString16(expiration_month()); |
| 331 |
| 329 case CREDIT_CARD_EXP_4_DIGIT_YEAR: | 332 case CREDIT_CARD_EXP_4_DIGIT_YEAR: |
| 330 return base::IntToString16(expiration_year()); | 333 return base::IntToString16(expiration_year()); |
| 331 | 334 |
| 332 case CREDIT_CARD_VERIFICATION_CODE: | 335 case CREDIT_CARD_VERIFICATION_CODE: |
| 333 break; | 336 break; |
| 334 | 337 |
| 335 default: | 338 default: |
| 336 NOTREACHED(); | 339 NOTREACHED(); |
| 337 } | 340 } |
| 338 | 341 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 VectorsAreEqual<LegalDocument>(legal_documents(), | 524 VectorsAreEqual<LegalDocument>(legal_documents(), |
| 522 other.legal_documents()); | 525 other.legal_documents()); |
| 523 } | 526 } |
| 524 | 527 |
| 525 bool WalletItems::operator!=(const WalletItems& other) const { | 528 bool WalletItems::operator!=(const WalletItems& other) const { |
| 526 return !(*this == other); | 529 return !(*this == other); |
| 527 } | 530 } |
| 528 | 531 |
| 529 } // namespace wallet | 532 } // namespace wallet |
| 530 } // namespace autofill | 533 } // namespace autofill |
| OLD | NEW |