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

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

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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 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.h" 5 #include "components/autofill/core/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/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "components/autofill/core/browser/autofill_country.h" 13 #include "components/autofill/core/browser/autofill_country.h"
14 #include "components/autofill/core/browser/autofill_field.h" 14 #include "components/autofill/core/browser/autofill_field.h"
15 #include "components/autofill/core/browser/autofill_type.h" 15 #include "components/autofill/core/browser/autofill_type.h"
16 16
17 namespace {
18
19 const char16 kAddressSplitChars[] = {'-', ',', '#', '.', ' ', 0};
20
21 } // namespace
22
23 namespace autofill { 17 namespace autofill {
24 18
25 Address::Address() {} 19 Address::Address() {}
26 20
27 Address::Address(const Address& address) : FormGroup() { 21 Address::Address(const Address& address) : FormGroup() {
28 *this = address; 22 *this = address;
29 } 23 }
30 24
31 Address::~Address() {} 25 Address::~Address() {}
32 26
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void Address::GetSupportedTypes(ServerFieldTypeSet* supported_types) const { 159 void Address::GetSupportedTypes(ServerFieldTypeSet* supported_types) const {
166 supported_types->insert(ADDRESS_HOME_LINE1); 160 supported_types->insert(ADDRESS_HOME_LINE1);
167 supported_types->insert(ADDRESS_HOME_LINE2); 161 supported_types->insert(ADDRESS_HOME_LINE2);
168 supported_types->insert(ADDRESS_HOME_CITY); 162 supported_types->insert(ADDRESS_HOME_CITY);
169 supported_types->insert(ADDRESS_HOME_STATE); 163 supported_types->insert(ADDRESS_HOME_STATE);
170 supported_types->insert(ADDRESS_HOME_ZIP); 164 supported_types->insert(ADDRESS_HOME_ZIP);
171 supported_types->insert(ADDRESS_HOME_COUNTRY); 165 supported_types->insert(ADDRESS_HOME_COUNTRY);
172 } 166 }
173 167
174 } // namespace autofill 168 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698