| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/autofill/wallet/instrument.h" | 5 #include "components/autofill/browser/wallet/instrument.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.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" |
| 11 #include "chrome/browser/autofill/validation.h" | 11 #include "components/autofill/browser/validation.h" |
| 12 #include "chrome/browser/autofill/wallet/wallet_address.h" | 12 #include "components/autofill/browser/wallet/wallet_address.h" |
| 13 | 13 |
| 14 namespace autofill { | 14 namespace autofill { |
| 15 namespace wallet { | 15 namespace wallet { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 std::string FormOfPaymentToString(Instrument::FormOfPayment form_of_payment) { | 19 std::string FormOfPaymentToString(Instrument::FormOfPayment form_of_payment) { |
| 20 switch (form_of_payment) { | 20 switch (form_of_payment) { |
| 21 case Instrument::UNKNOWN: | 21 case Instrument::UNKNOWN: |
| 22 return "UNKNOWN"; | 22 return "UNKNOWN"; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 void Instrument::Init() { | 102 void Instrument::Init() { |
| 103 if (primary_account_number_.size() >= 4) { | 103 if (primary_account_number_.size() >= 4) { |
| 104 last_four_digits_ = | 104 last_four_digits_ = |
| 105 primary_account_number_.substr(primary_account_number_.size() - 4); | 105 primary_account_number_.substr(primary_account_number_.size() - 4); |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace wallet | 109 } // namespace wallet |
| 110 } // namespace autofill | 110 } // namespace autofill |
| OLD | NEW |