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

Side by Side Diff: components/autofill/core/browser/phone_number.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_number.h" 5 #include "components/autofill/core/browser/phone_number.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.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 "components/autofill/browser/autofill_country.h" 11 #include "components/autofill/core/browser/autofill_country.h"
12 #include "components/autofill/browser/autofill_profile.h" 12 #include "components/autofill/core/browser/autofill_profile.h"
13 #include "components/autofill/browser/autofill_type.h" 13 #include "components/autofill/core/browser/autofill_type.h"
14 #include "components/autofill/browser/field_types.h" 14 #include "components/autofill/core/browser/field_types.h"
15 #include "components/autofill/browser/phone_number_i18n.h" 15 #include "components/autofill/core/browser/phone_number_i18n.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 namespace { 18 namespace {
19 19
20 const char16 kPhoneNumberSeparators[] = { ' ', '.', '(', ')', '-', 0 }; 20 const char16 kPhoneNumberSeparators[] = { ' ', '.', '(', ')', '-', 0 };
21 21
22 // The number of digits in a phone number. 22 // The number of digits in a phone number.
23 const size_t kPhoneNumberLength = 7; 23 const size_t kPhoneNumberLength = 7;
24 24
25 // The number of digits in an area code. 25 // The number of digits in an area code.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 return i18n::ConstructPhoneNumber( 238 return i18n::ConstructPhoneNumber(
239 country_, city_, phone_, GetRegion(profile, app_locale), value); 239 country_, city_, phone_, GetRegion(profile, app_locale), value);
240 } 240 }
241 241
242 bool PhoneNumber::PhoneCombineHelper::IsEmpty() const { 242 bool PhoneNumber::PhoneCombineHelper::IsEmpty() const {
243 return phone_.empty() && whole_number_.empty(); 243 return phone_.empty() && whole_number_.empty();
244 } 244 }
245 245
246 } // namespace autofill 246 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/phone_number.h ('k') | components/autofill/core/browser/phone_number_i18n.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698