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

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

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 9 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/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "components/autofill/core/browser/credit_card.h" 14 #include "components/autofill/core/browser/credit_card.h"
15 #include "components/autofill/core/browser/state_names.h" 15 #include "components/autofill/core/browser/state_names.h"
16 #include "components/autofill/core/common/autofill_clock.h" 16 #include "components/autofill/core/common/autofill_clock.h"
17 #include "components/autofill/core/common/autofill_regexes.h" 17 #include "components/autofill/core/common/autofill_regexes.h"
18 #include "grit/components_strings.h" 18 #include "components/strings/grit/components_strings.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 20
21 namespace autofill { 21 namespace autofill {
22 22
23 bool IsValidCreditCardExpirationDate(int year, 23 bool IsValidCreditCardExpirationDate(int year,
24 int month, 24 int month,
25 const base::Time& now) { 25 const base::Time& now) {
26 if (month < 1 || month > 12) 26 if (month < 1 || month > 12)
27 return false; 27 return false;
28 28
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 default: 280 default:
281 // Other types such as CREDIT_CARD_TYPE and CREDIT_CARD_VERIFICATION_CODE 281 // Other types such as CREDIT_CARD_TYPE and CREDIT_CARD_VERIFICATION_CODE
282 // are not validated for now. 282 // are not validated for now.
283 NOTREACHED() << "Attempting to validate unsupported type " << type; 283 NOTREACHED() << "Attempting to validate unsupported type " << type;
284 break; 284 break;
285 } 285 }
286 return false; 286 return false;
287 } 287 }
288 288
289 } // namespace autofill 289 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698