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

Side by Side Diff: components/autofill/browser/address.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
« no previous file with comments | « components/autofill/browser/address.h ('k') | components/autofill/browser/address_field.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/address.h" 5 #include "components/autofill/browser/address.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "chrome/browser/autofill/autofill_country.h" 12 #include "components/autofill/browser/autofill_country.h"
13 #include "chrome/browser/autofill/autofill_type.h" 13 #include "components/autofill/browser/autofill_type.h"
14 #include "chrome/browser/autofill/field_types.h" 14 #include "components/autofill/browser/field_types.h"
15 15
16 namespace { 16 namespace {
17 17
18 const char16 kAddressSplitChars[] = {'-', ',', '#', '.', ' ', 0}; 18 const char16 kAddressSplitChars[] = {'-', ',', '#', '.', ' ', 0};
19 19
20 } // namespace 20 } // namespace
21 21
22 Address::Address() {} 22 Address::Address() {}
23 23
24 Address::Address(const Address& address) : FormGroup() { 24 Address::Address(const Address& address) : FormGroup() {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 matching_types->insert(ADDRESS_HOME_COUNTRY); 105 matching_types->insert(ADDRESS_HOME_COUNTRY);
106 } 106 }
107 107
108 string16 Address::Country() const { 108 string16 Address::Country() const {
109 if (country_code().empty()) 109 if (country_code().empty())
110 return string16(); 110 return string16();
111 111
112 std::string app_locale = AutofillCountry::ApplicationLocale(); 112 std::string app_locale = AutofillCountry::ApplicationLocale();
113 return AutofillCountry(country_code(), app_locale).name(); 113 return AutofillCountry(country_code(), app_locale).name();
114 } 114 }
OLDNEW
« no previous file with comments | « components/autofill/browser/address.h ('k') | components/autofill/browser/address_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698