| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 #if defined(OS_ANDROID) | 302 #if defined(OS_ANDROID) |
| 303 // TODO(aruslan): improve this stub implementation. | 303 // TODO(aruslan): improve this stub implementation. |
| 304 return address().DisplayName(); | 304 return address().DisplayName(); |
| 305 #else | 305 #else |
| 306 return base::string16(); | 306 return base::string16(); |
| 307 #endif | 307 #endif |
| 308 } | 308 } |
| 309 | 309 |
| 310 base::string16 WalletItems::MaskedInstrument::TypeAndLastFourDigits() const { | 310 base::string16 WalletItems::MaskedInstrument::TypeAndLastFourDigits() const { |
| 311 // TODO(dbeam): i18n. | 311 // TODO(dbeam): i18n. |
| 312 return DisplayStringFromType(type_) + ASCIIToUTF16(" - ") + | 312 return DisplayStringFromType(type_) + base::ASCIIToUTF16(" - ") + |
| 313 last_four_digits(); | 313 last_four_digits(); |
| 314 } | 314 } |
| 315 | 315 |
| 316 const gfx::Image& WalletItems::MaskedInstrument::CardIcon() const { | 316 const gfx::Image& WalletItems::MaskedInstrument::CardIcon() const { |
| 317 int idr = 0; | 317 int idr = 0; |
| 318 switch (type_) { | 318 switch (type_) { |
| 319 case AMEX: | 319 case AMEX: |
| 320 idr = IDR_AUTOFILL_CC_AMEX; | 320 idr = IDR_AUTOFILL_CC_AMEX; |
| 321 break; | 321 break; |
| 322 | 322 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 VectorsAreEqual<LegalDocument>(legal_documents(), | 585 VectorsAreEqual<LegalDocument>(legal_documents(), |
| 586 other.legal_documents()); | 586 other.legal_documents()); |
| 587 } | 587 } |
| 588 | 588 |
| 589 bool WalletItems::operator!=(const WalletItems& other) const { | 589 bool WalletItems::operator!=(const WalletItems& other) const { |
| 590 return !(*this == other); | 590 return !(*this == other); |
| 591 } | 591 } |
| 592 | 592 |
| 593 } // namespace wallet | 593 } // namespace wallet |
| 594 } // namespace autofill | 594 } // namespace autofill |
| OLD | NEW |