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

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

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 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 | 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 "chrome/browser/autofill/phone_field.h" 5 #include "components/autofill/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/string16.h" 9 #include "base/string16.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/autofill/autofill_field.h" 12 #include "components/autofill/browser/autofill_field.h"
13 #include "chrome/browser/autofill/autofill_regex_constants.h" 13 #include "components/autofill/browser/autofill_regex_constants.h"
14 #include "chrome/browser/autofill/autofill_scanner.h" 14 #include "components/autofill/browser/autofill_scanner.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 namespace { 17 namespace {
18 18
19 // This string includes all area code separators, including NoText. 19 // This string includes all area code separators, including NoText.
20 string16 GetAreaRegex() { 20 string16 GetAreaRegex() {
21 string16 area_code = UTF8ToUTF16(autofill::kAreaCodeRe); 21 string16 area_code = UTF8ToUTF16(autofill::kAreaCodeRe);
22 area_code.append(ASCIIToUTF16("|")); // Regexp separator. 22 area_code.append(ASCIIToUTF16("|")); // Regexp separator.
23 area_code.append(UTF8ToUTF16(autofill::kAreaCodeNotextRe)); 23 area_code.append(UTF8ToUTF16(autofill::kAreaCodeNotextRe));
24 return area_code; 24 return area_code;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 case REGEX_SUFFIX: 264 case REGEX_SUFFIX:
265 return UTF8ToUTF16(autofill::kPhoneSuffixRe); 265 return UTF8ToUTF16(autofill::kPhoneSuffixRe);
266 case REGEX_EXTENSION: 266 case REGEX_EXTENSION:
267 return UTF8ToUTF16(autofill::kPhoneExtensionRe); 267 return UTF8ToUTF16(autofill::kPhoneExtensionRe);
268 default: 268 default:
269 NOTREACHED(); 269 NOTREACHED();
270 break; 270 break;
271 } 271 }
272 return string16(); 272 return string16();
273 } 273 }
OLDNEW
« no previous file with comments | « components/autofill/browser/phone_field.h ('k') | components/autofill/browser/phone_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698