| OLD | NEW |
| 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 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 return *this; | 153 return *this; |
| 154 | 154 |
| 155 given_ = info.given_; | 155 given_ = info.given_; |
| 156 middle_ = info.middle_; | 156 middle_ = info.middle_; |
| 157 family_ = info.family_; | 157 family_ = info.family_; |
| 158 full_ = info.full_; | 158 full_ = info.full_; |
| 159 return *this; | 159 return *this; |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool NameInfo::ParsedNamesAreEqual(const NameInfo& info) { | 162 bool NameInfo::ParsedNamesAreEqual(const NameInfo& info) { |
| 163 return (StringToLowerASCII(given_) == StringToLowerASCII(info.given_) && | 163 return (base::StringToLowerASCII(given_) == |
| 164 StringToLowerASCII(middle_) == StringToLowerASCII(info.middle_) && | 164 base::StringToLowerASCII(info.given_) && |
| 165 StringToLowerASCII(family_) == StringToLowerASCII(info.family_)); | 165 base::StringToLowerASCII(middle_) == |
| 166 base::StringToLowerASCII(info.middle_) && |
| 167 base::StringToLowerASCII(family_) == |
| 168 base::StringToLowerASCII(info.family_)); |
| 166 } | 169 } |
| 167 | 170 |
| 168 void NameInfo::GetSupportedTypes(ServerFieldTypeSet* supported_types) const { | 171 void NameInfo::GetSupportedTypes(ServerFieldTypeSet* supported_types) const { |
| 169 supported_types->insert(NAME_FIRST); | 172 supported_types->insert(NAME_FIRST); |
| 170 supported_types->insert(NAME_MIDDLE); | 173 supported_types->insert(NAME_MIDDLE); |
| 171 supported_types->insert(NAME_LAST); | 174 supported_types->insert(NAME_LAST); |
| 172 supported_types->insert(NAME_MIDDLE_INITIAL); | 175 supported_types->insert(NAME_MIDDLE_INITIAL); |
| 173 supported_types->insert(NAME_FULL); | 176 supported_types->insert(NAME_FULL); |
| 174 } | 177 } |
| 175 | 178 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 return base::string16(); | 348 return base::string16(); |
| 346 } | 349 } |
| 347 | 350 |
| 348 void CompanyInfo::SetRawInfo(ServerFieldType type, | 351 void CompanyInfo::SetRawInfo(ServerFieldType type, |
| 349 const base::string16& value) { | 352 const base::string16& value) { |
| 350 DCHECK_EQ(COMPANY_NAME, type); | 353 DCHECK_EQ(COMPANY_NAME, type); |
| 351 company_name_ = value; | 354 company_name_ = value; |
| 352 } | 355 } |
| 353 | 356 |
| 354 } // namespace autofill | 357 } // namespace autofill |
| OLD | NEW |