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

Side by Side Diff: components/autofill/core/browser/validation.cc

Issue 2877473002: Move autofill_regex_constants to core/common. (Closed)
Patch Set: Remove illegal dependency. Created 3 years, 7 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
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/core/browser/validation.h" 5 #include "components/autofill/core/browser/validation.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/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.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 "base/time/time.h" 14 #include "base/time/time.h"
15 #include "components/autofill/core/browser/autofill_data_util.h" 15 #include "components/autofill/core/browser/autofill_data_util.h"
16 #include "components/autofill/core/browser/autofill_regex_constants.h"
17 #include "components/autofill/core/browser/credit_card.h" 16 #include "components/autofill/core/browser/credit_card.h"
18 #include "components/autofill/core/browser/state_names.h" 17 #include "components/autofill/core/browser/state_names.h"
19 #include "components/autofill/core/common/autofill_clock.h" 18 #include "components/autofill/core/common/autofill_clock.h"
19 #include "components/autofill/core/common/autofill_regex_constants.h"
20 #include "components/autofill/core/common/autofill_regexes.h" 20 #include "components/autofill/core/common/autofill_regexes.h"
21 #include "components/strings/grit/components_strings.h" 21 #include "components/strings/grit/components_strings.h"
22 #include "third_party/libphonenumber/phonenumber_api.h" 22 #include "third_party/libphonenumber/phonenumber_api.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
24 24
25 namespace autofill { 25 namespace autofill {
26 26
27 bool IsValidCreditCardExpirationDate(int year, 27 bool IsValidCreditCardExpirationDate(int year,
28 int month, 28 int month,
29 const base::Time& now) { 29 const base::Time& now) {
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 return AMEX_CVC_LENGTH; 365 return AMEX_CVC_LENGTH;
366 366
367 return GENERAL_CVC_LENGTH; 367 return GENERAL_CVC_LENGTH;
368 } 368 }
369 369
370 bool IsUPIVirtualPaymentAddress(const base::string16& value) { 370 bool IsUPIVirtualPaymentAddress(const base::string16& value) {
371 return MatchesPattern(value, base::ASCIIToUTF16(kUPIVirtualPaymentAddressRe)); 371 return MatchesPattern(value, base::ASCIIToUTF16(kUPIVirtualPaymentAddressRe));
372 } 372 }
373 373
374 } // namespace autofill 374 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/phone_field.cc ('k') | components/autofill/core/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698