| 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 "chrome/browser/autofill/contact_info.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <ostream> |
| 9 #include <string> |
| 10 |
| 7 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/autofill/autofill_type.h" | 15 #include "chrome/browser/autofill/autofill_type.h" |
| 11 #include "chrome/browser/autofill/field_types.h" | 16 #include "chrome/browser/autofill/field_types.h" |
| 12 | 17 |
| 13 static const string16 kNameSplitChars = ASCIIToUTF16("-'. "); | 18 static const string16 kNameSplitChars = ASCIIToUTF16("-'. "); |
| 14 | 19 |
| 15 static const AutofillFieldType kAutofillNameInfoTypes[] = { | 20 static const AutofillFieldType kAutofillNameInfoTypes[] = { |
| 16 NAME_FIRST, | 21 NAME_FIRST, |
| 17 NAME_MIDDLE, | 22 NAME_MIDDLE, |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 if (type == COMPANY_NAME) | 470 if (type == COMPANY_NAME) |
| 466 return company_name_; | 471 return company_name_; |
| 467 | 472 |
| 468 return string16(); | 473 return string16(); |
| 469 } | 474 } |
| 470 | 475 |
| 471 void CompanyInfo::SetInfo(AutofillFieldType type, const string16& value) { | 476 void CompanyInfo::SetInfo(AutofillFieldType type, const string16& value) { |
| 472 DCHECK_EQ(COMPANY_NAME, type); | 477 DCHECK_EQ(COMPANY_NAME, type); |
| 473 company_name_ = value; | 478 company_name_ = value; |
| 474 } | 479 } |
| OLD | NEW |