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

Side by Side Diff: components/autofill/browser/contact_info.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/contact_info.h" 5 #include "components/autofill/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/string_util.h" 13 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "chrome/browser/autofill/autofill_type.h" 15 #include "components/autofill/browser/autofill_type.h"
16 #include "chrome/browser/autofill/field_types.h" 16 #include "components/autofill/browser/field_types.h"
17 17
18 static const AutofillFieldType kAutofillNameInfoTypes[] = { 18 static const AutofillFieldType kAutofillNameInfoTypes[] = {
19 NAME_FIRST, 19 NAME_FIRST,
20 NAME_MIDDLE, 20 NAME_MIDDLE,
21 NAME_LAST 21 NAME_LAST
22 }; 22 };
23 23
24 static const size_t kAutofillNameInfoLength = 24 static const size_t kAutofillNameInfoLength =
25 arraysize(kAutofillNameInfoTypes); 25 arraysize(kAutofillNameInfoTypes);
26 26
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 if (type == COMPANY_NAME) 187 if (type == COMPANY_NAME)
188 return company_name_; 188 return company_name_;
189 189
190 return string16(); 190 return string16();
191 } 191 }
192 192
193 void CompanyInfo::SetRawInfo(AutofillFieldType type, const string16& value) { 193 void CompanyInfo::SetRawInfo(AutofillFieldType type, const string16& value) {
194 DCHECK_EQ(COMPANY_NAME, type); 194 DCHECK_EQ(COMPANY_NAME, type);
195 company_name_ = value; 195 company_name_ = value;
196 } 196 }
OLDNEW
« no previous file with comments | « components/autofill/browser/contact_info.h ('k') | components/autofill/browser/contact_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698