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/instrument.h" | 5 #include "components/autofill/content/browser/wallet/instrument.h" |
6 | 6 |
7 #include "base/logging.h" | |
Ilya Sherman
2014/10/16 18:55:46
This is used by the NOTREACHED() macro.
Sunil Ratnu
2014/10/17 02:45:59
Done.
| |
8 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 10 #include "base/values.h" |
12 #include "components/autofill/content/browser/wallet/wallet_address.h" | 11 #include "components/autofill/content/browser/wallet/wallet_address.h" |
13 #include "components/autofill/core/browser/autofill_country.h" | 12 #include "components/autofill/core/browser/autofill_country.h" |
14 #include "components/autofill/core/browser/autofill_profile.h" | 13 #include "components/autofill/core/browser/autofill_profile.h" |
15 #include "components/autofill/core/browser/credit_card.h" | 14 #include "components/autofill/core/browser/credit_card.h" |
16 #include "components/autofill/core/browser/validation.h" | 15 #include "components/autofill/core/browser/validation.h" |
17 | 16 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 | 115 |
117 void Instrument::Init() { | 116 void Instrument::Init() { |
118 if (primary_account_number_.size() >= 4) { | 117 if (primary_account_number_.size() >= 4) { |
119 last_four_digits_ = | 118 last_four_digits_ = |
120 primary_account_number_.substr(primary_account_number_.size() - 4); | 119 primary_account_number_.substr(primary_account_number_.size() - 4); |
121 } | 120 } |
122 } | 121 } |
123 | 122 |
124 } // namespace wallet | 123 } // namespace wallet |
125 } // namespace autofill | 124 } // namespace autofill |
OLD | NEW |