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/autofill_profile.h" | 5 #include "components/autofill/core/browser/autofill_profile.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <map> | 9 #include <map> |
10 #include <ostream> | 10 #include <ostream> |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 case PHONE_BILLING: | 1101 case PHONE_BILLING: |
1102 return &phone_number_[0]; | 1102 return &phone_number_[0]; |
1103 | 1103 |
1104 case ADDRESS_HOME: | 1104 case ADDRESS_HOME: |
1105 case ADDRESS_BILLING: | 1105 case ADDRESS_BILLING: |
1106 return &address_; | 1106 return &address_; |
1107 | 1107 |
1108 case NO_GROUP: | 1108 case NO_GROUP: |
1109 case CREDIT_CARD: | 1109 case CREDIT_CARD: |
1110 case PASSWORD_FIELD: | 1110 case PASSWORD_FIELD: |
| 1111 case USERNAME_FIELD: |
1111 case TRANSACTION: | 1112 case TRANSACTION: |
1112 return NULL; | 1113 return NULL; |
1113 } | 1114 } |
1114 | 1115 |
1115 NOTREACHED(); | 1116 NOTREACHED(); |
1116 return NULL; | 1117 return NULL; |
1117 } | 1118 } |
1118 | 1119 |
1119 bool AutofillProfile::EqualsSansGuid(const AutofillProfile& profile) const { | 1120 bool AutofillProfile::EqualsSansGuid(const AutofillProfile& profile) const { |
1120 return origin() == profile.origin() && | 1121 return origin() == profile.origin() && |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)) | 1155 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)) |
1155 << " " | 1156 << " " |
1156 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_COUNTRY)) | 1157 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_COUNTRY)) |
1157 << " " | 1158 << " " |
1158 << profile.language_code() | 1159 << profile.language_code() |
1159 << " " | 1160 << " " |
1160 << UTF16ToUTF8(MultiString(profile, PHONE_HOME_WHOLE_NUMBER)); | 1161 << UTF16ToUTF8(MultiString(profile, PHONE_HOME_WHOLE_NUMBER)); |
1161 } | 1162 } |
1162 | 1163 |
1163 } // namespace autofill | 1164 } // namespace autofill |
OLD | NEW |