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 "components/autofill/browser/validation.h" | 5 #include "components/autofill/core/browser/validation.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.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/time.h" | 11 #include "base/time.h" |
12 #include "components/autofill/browser/autofill_regexes.h" | 12 #include "components/autofill/core/browser/autofill_regexes.h" |
13 #include "components/autofill/browser/credit_card.h" | 13 #include "components/autofill/core/browser/credit_card.h" |
14 #include "components/autofill/browser/state_names.h" | 14 #include "components/autofill/core/browser/state_names.h" |
15 | 15 |
16 using base::StringPiece16; | 16 using base::StringPiece16; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // The separator characters for SSNs. | 20 // The separator characters for SSNs. |
21 const char16 kSSNSeparators[] = {' ', '-', 0}; | 21 const char16 kSSNSeparators[] = {' ', '-', 0}; |
22 | 22 |
23 } // namespace | 23 } // namespace |
24 | 24 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 number_string.begin() + 9), | 187 number_string.begin() + 9), |
188 &serial) | 188 &serial) |
189 || serial == 0) { | 189 || serial == 0) { |
190 return false; | 190 return false; |
191 } | 191 } |
192 | 192 |
193 return true; | 193 return true; |
194 } | 194 } |
195 | 195 |
196 } // namespace autofill | 196 } // namespace autofill |
OLD | NEW |