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

Side by Side Diff: components/autofill/core/browser/contact_info.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/contact_info.h" 5 #include "components/autofill/core/browser/contact_info.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "components/autofill/core/browser/autofill_type.h" 15 #include "components/autofill/core/browser/autofill_type.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 static const ServerFieldType kAutofillNameInfoTypes[] = {
20 NAME_FIRST,
21 NAME_MIDDLE,
22 NAME_LAST
23 };
24
25 static const size_t kAutofillNameInfoLength =
26 arraysize(kAutofillNameInfoTypes);
27
28 NameInfo::NameInfo() {} 19 NameInfo::NameInfo() {}
29 20
30 NameInfo::NameInfo(const NameInfo& info) : FormGroup() { 21 NameInfo::NameInfo(const NameInfo& info) : FormGroup() {
31 *this = info; 22 *this = info;
32 } 23 }
33 24
34 NameInfo::~NameInfo() {} 25 NameInfo::~NameInfo() {}
35 26
36 NameInfo& NameInfo::operator=(const NameInfo& info) { 27 NameInfo& NameInfo::operator=(const NameInfo& info) {
37 if (this == &info) 28 if (this == &info)
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 return base::string16(); 197 return base::string16();
207 } 198 }
208 199
209 void CompanyInfo::SetRawInfo(ServerFieldType type, 200 void CompanyInfo::SetRawInfo(ServerFieldType type,
210 const base::string16& value) { 201 const base::string16& value) {
211 DCHECK_EQ(COMPANY_NAME, type); 202 DCHECK_EQ(COMPANY_NAME, type);
212 company_name_ = value; 203 company_name_ = value;
213 } 204 }
214 205
215 } // namespace autofill 206 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698