| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/extensions/api/autofill_private/autofill_private_api.h" | 5 #include "chrome/browser/extensions/api/autofill_private/autofill_private_api.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/guid.h" | 10 #include "base/guid.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 | 207 |
| 208 if (address->address_lines) { | 208 if (address->address_lines) { |
| 209 profile.SetRawInfo( | 209 profile.SetRawInfo( |
| 210 autofill::ADDRESS_HOME_STREET_ADDRESS, | 210 autofill::ADDRESS_HOME_STREET_ADDRESS, |
| 211 base::UTF8ToUTF16(*address->address_lines)); | 211 base::UTF8ToUTF16(*address->address_lines)); |
| 212 } | 212 } |
| 213 | 213 |
| 214 if (address->address_level1) { | 214 if (address->address_level1) { |
| 215 profile.SetRawInfo( | 215 profile.SetRawInfo( |
| 216 autofill::ADDRESS_HOME_CITY, | 216 autofill::ADDRESS_HOME_STATE, |
| 217 base::UTF8ToUTF16(*address->address_level1)); | 217 base::UTF8ToUTF16(*address->address_level1)); |
| 218 } | 218 } |
| 219 | 219 |
| 220 if (address->address_level2) { | 220 if (address->address_level2) { |
| 221 profile.SetRawInfo( | 221 profile.SetRawInfo( |
| 222 autofill::ADDRESS_HOME_STATE, | 222 autofill::ADDRESS_HOME_CITY, |
| 223 base::UTF8ToUTF16(*address->address_level2)); | 223 base::UTF8ToUTF16(*address->address_level2)); |
| 224 } | 224 } |
| 225 | 225 |
| 226 if (address->address_level3) { | 226 if (address->address_level3) { |
| 227 profile.SetRawInfo( | 227 profile.SetRawInfo( |
| 228 autofill::ADDRESS_HOME_DEPENDENT_LOCALITY, | 228 autofill::ADDRESS_HOME_DEPENDENT_LOCALITY, |
| 229 base::UTF8ToUTF16(*address->address_level3)); | 229 base::UTF8ToUTF16(*address->address_level3)); |
| 230 } | 230 } |
| 231 | 231 |
| 232 if (address->postal_code) { | 232 if (address->postal_code) { |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 500 |
| 501 autofill_util::CreditCardEntryList credit_card_list = | 501 autofill_util::CreditCardEntryList credit_card_list = |
| 502 autofill_util::GenerateCreditCardList(*personal_data); | 502 autofill_util::GenerateCreditCardList(*personal_data); |
| 503 | 503 |
| 504 return RespondNow( | 504 return RespondNow( |
| 505 ArgumentList(api::autofill_private::GetCreditCardList::Results::Create( | 505 ArgumentList(api::autofill_private::GetCreditCardList::Results::Create( |
| 506 credit_card_list))); | 506 credit_card_list))); |
| 507 } | 507 } |
| 508 | 508 |
| 509 } // namespace extensions | 509 } // namespace extensions |
| OLD | NEW |