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

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

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/phone_field.h" 5 #include "components/autofill/core/browser/phone_field.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "components/autofill/browser/autofill_field.h" 12 #include "components/autofill/core/browser/autofill_field.h"
13 #include "components/autofill/browser/autofill_regex_constants.h" 13 #include "components/autofill/core/browser/autofill_regex_constants.h"
14 #include "components/autofill/browser/autofill_scanner.h" 14 #include "components/autofill/core/browser/autofill_scanner.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 namespace { 18 namespace {
19 19
20 // This string includes all area code separators, including NoText. 20 // This string includes all area code separators, including NoText.
21 base::string16 GetAreaRegex() { 21 base::string16 GetAreaRegex() {
22 base::string16 area_code = UTF8ToUTF16(autofill::kAreaCodeRe); 22 base::string16 area_code = UTF8ToUTF16(autofill::kAreaCodeRe);
23 area_code.append(ASCIIToUTF16("|")); // Regexp separator. 23 area_code.append(ASCIIToUTF16("|")); // Regexp separator.
24 area_code.append(UTF8ToUTF16(autofill::kAreaCodeNotextRe)); 24 area_code.append(UTF8ToUTF16(autofill::kAreaCodeNotextRe));
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 case REGEX_EXTENSION: 267 case REGEX_EXTENSION:
268 return UTF8ToUTF16(autofill::kPhoneExtensionRe); 268 return UTF8ToUTF16(autofill::kPhoneExtensionRe);
269 default: 269 default:
270 NOTREACHED(); 270 NOTREACHED();
271 break; 271 break;
272 } 272 }
273 return base::string16(); 273 return base::string16();
274 } 274 }
275 275
276 } // namespace autofill 276 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/phone_field.h ('k') | components/autofill/core/browser/phone_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698