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

Side by Side Diff: components/autofill/core/browser/address_field.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/address_field.h" 5 #include "components/autofill/core/browser/address_field.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "components/autofill/core/browser/autofill_field.h" 16 #include "components/autofill/core/browser/autofill_field.h"
17 #include "components/autofill/core/browser/autofill_regex_constants.h"
18 #include "components/autofill/core/browser/autofill_scanner.h" 17 #include "components/autofill/core/browser/autofill_scanner.h"
19 #include "components/autofill/core/browser/field_types.h" 18 #include "components/autofill/core/browser/field_types.h"
19 #include "components/autofill/core/common/autofill_regex_constants.h"
20 20
21 using base::UTF8ToUTF16; 21 using base::UTF8ToUTF16;
22 22
23 namespace autofill { 23 namespace autofill {
24 24
25 namespace { 25 namespace {
26 26
27 bool SetFieldAndAdvanceCursor(AutofillScanner* scanner, AutofillField** field) { 27 bool SetFieldAndAdvanceCursor(AutofillScanner* scanner, AutofillField** field) {
28 *field = scanner->Cursor(); 28 *field = scanner->Cursor();
29 scanner->Advance(); 29 scanner->Advance();
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 AddressField::ParseNameLabelResult AddressField::ParseNameAndLabelForState( 414 AddressField::ParseNameLabelResult AddressField::ParseNameAndLabelForState(
415 AutofillScanner* scanner) { 415 AutofillScanner* scanner) {
416 if (state_) 416 if (state_)
417 return RESULT_MATCH_NONE; 417 return RESULT_MATCH_NONE;
418 418
419 return ParseNameAndLabelSeparately( 419 return ParseNameAndLabelSeparately(
420 scanner, UTF8ToUTF16(kStateRe), kStateMatchType, &state_); 420 scanner, UTF8ToUTF16(kStateRe), kStateMatchType, &state_);
421 } 421 }
422 422
423 } // namespace autofill 423 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/autofill_regex_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698