Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: components/autofill/content/browser/wallet/instrument.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 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/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "components/autofill/browser/autofill_country.h"
13 #include "components/autofill/browser/autofill_profile.h"
14 #include "components/autofill/browser/credit_card.h"
15 #include "components/autofill/browser/validation.h"
16 #include "components/autofill/content/browser/wallet/wallet_address.h" 12 #include "components/autofill/content/browser/wallet/wallet_address.h"
13 #include "components/autofill/core/browser/autofill_country.h"
14 #include "components/autofill/core/browser/autofill_profile.h"
15 #include "components/autofill/core/browser/credit_card.h"
16 #include "components/autofill/core/browser/validation.h"
17 17
18 namespace autofill { 18 namespace autofill {
19 namespace wallet { 19 namespace wallet {
20 20
21 namespace { 21 namespace {
22 22
23 // Converts a known Autofill card type to a Instrument::FormOfPayment. 23 // Converts a known Autofill card type to a Instrument::FormOfPayment.
24 // Used for creating new Instruments. 24 // Used for creating new Instruments.
25 Instrument::FormOfPayment FormOfPaymentFromCardType(const std::string& type) { 25 Instrument::FormOfPayment FormOfPaymentFromCardType(const std::string& type) {
26 if (type == kAmericanExpressCard) 26 if (type == kAmericanExpressCard)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 void Instrument::Init() { 133 void Instrument::Init() {
134 if (primary_account_number_.size() >= 4) { 134 if (primary_account_number_.size() >= 4) {
135 last_four_digits_ = 135 last_four_digits_ =
136 primary_account_number_.substr(primary_account_number_.size() - 4); 136 primary_account_number_.substr(primary_account_number_.size() - 4);
137 } 137 }
138 } 138 }
139 139
140 } // namespace wallet 140 } // namespace wallet
141 } // namespace autofill 141 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/content/browser/wallet/full_wallet.cc ('k') | components/autofill/content/browser/wallet/wallet_address.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698