OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |