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

Side by Side Diff: components/autofill/core/browser/credit_card_field.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/credit_card_field.h" 5 #include "components/autofill/core/browser/credit_card_field.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "components/autofill/browser/autofill_field.h" 14 #include "components/autofill/core/browser/autofill_field.h"
15 #include "components/autofill/browser/autofill_regex_constants.h" 15 #include "components/autofill/core/browser/autofill_regex_constants.h"
16 #include "components/autofill/browser/autofill_scanner.h" 16 #include "components/autofill/core/browser/autofill_scanner.h"
17 #include "components/autofill/browser/field_types.h" 17 #include "components/autofill/core/browser/field_types.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 19
20 namespace autofill { 20 namespace autofill {
21 21
22 // static 22 // static
23 FormField* CreditCardField::Parse(AutofillScanner* scanner) { 23 FormField* CreditCardField::Parse(AutofillScanner* scanner) {
24 if (scanner->IsEnd()) 24 if (scanner->IsEnd())
25 return NULL; 25 return NULL;
26 26
27 scoped_ptr<CreditCardField> credit_card_field(new CreditCardField); 27 scoped_ptr<CreditCardField> credit_card_field(new CreditCardField);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ok = ok && AddClassification(expiration_year_, 224 ok = ok && AddClassification(expiration_year_,
225 CREDIT_CARD_EXP_4_DIGIT_YEAR, 225 CREDIT_CARD_EXP_4_DIGIT_YEAR,
226 map); 226 map);
227 } 227 }
228 } 228 }
229 229
230 return ok; 230 return ok;
231 } 231 }
232 232
233 } // namespace autofill 233 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/credit_card_field.h ('k') | components/autofill/core/browser/credit_card_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698