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

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

Issue 113403006: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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/core/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/time.h" 11 #include "base/time/time.h"
12 #include "components/autofill/core/browser/autofill_regexes.h" 12 #include "components/autofill/core/browser/autofill_regexes.h"
13 #include "components/autofill/core/browser/credit_card.h" 13 #include "components/autofill/core/browser/credit_card.h"
14 #include "components/autofill/core/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 base::char16 kSSNSeparators[] = {' ', '-', 0};
22 22
23 } // namespace 23 } // namespace
24 24
25 namespace autofill { 25 namespace autofill {
26 26
27 bool IsValidCreditCardExpirationDate(const base::string16& year, 27 bool IsValidCreditCardExpirationDate(const base::string16& year,
28 const base::string16& month, 28 const base::string16& month,
29 const base::Time& now) { 29 const base::Time& now) {
30 base::string16 year_cleaned, month_cleaned; 30 base::string16 year_cleaned, month_cleaned;
31 TrimWhitespace(year, TRIM_ALL, &year_cleaned); 31 TrimWhitespace(year, TRIM_ALL, &year_cleaned);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 number_string.begin() + 9), 211 number_string.begin() + 9),
212 &serial) 212 &serial)
213 || serial == 0) { 213 || serial == 0) {
214 return false; 214 return false;
215 } 215 }
216 216
217 return true; 217 return true;
218 } 218 }
219 219
220 } // namespace autofill 220 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/phone_number.cc ('k') | components/policy/core/common/policy_loader_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698