| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/options/autofill_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/autofill_options_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "chrome/grit/generated_resources.h" | 31 #include "chrome/grit/generated_resources.h" |
| 32 #include "components/autofill/core/browser/autofill_country.h" | 32 #include "components/autofill/core/browser/autofill_country.h" |
| 33 #include "components/autofill/core/browser/autofill_data_util.h" | 33 #include "components/autofill/core/browser/autofill_data_util.h" |
| 34 #include "components/autofill/core/browser/autofill_profile.h" | 34 #include "components/autofill/core/browser/autofill_profile.h" |
| 35 #include "components/autofill/core/browser/credit_card.h" | 35 #include "components/autofill/core/browser/credit_card.h" |
| 36 #include "components/autofill/core/browser/payments/payments_service_url.h" | 36 #include "components/autofill/core/browser/payments/payments_service_url.h" |
| 37 #include "components/autofill/core/browser/personal_data_manager.h" | 37 #include "components/autofill/core/browser/personal_data_manager.h" |
| 38 #include "components/autofill/core/browser/phone_number_i18n.h" | 38 #include "components/autofill/core/browser/phone_number_i18n.h" |
| 39 #include "components/autofill/core/common/autofill_constants.h" | 39 #include "components/autofill/core/common/autofill_constants.h" |
| 40 #include "components/autofill/core/common/autofill_switches.h" | 40 #include "components/autofill/core/common/autofill_switches.h" |
| 41 #include "components/strings/grit/components_strings.h" |
| 41 #include "content/public/browser/web_ui.h" | 42 #include "content/public/browser/web_ui.h" |
| 42 #include "grit/components_strings.h" | |
| 43 #include "third_party/libaddressinput/messages.h" | 43 #include "third_party/libaddressinput/messages.h" |
| 44 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_ui
.h" | 44 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_ui
.h" |
| 45 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_ui
_component.h" | 45 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_ui
_component.h" |
| 46 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/localizati
on.h" | 46 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/localizati
on.h" |
| 47 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
| 48 #include "ui/base/webui/web_ui_util.h" | 48 #include "ui/base/webui/web_ui_util.h" |
| 49 | 49 |
| 50 using autofill::AutofillCountry; | 50 using autofill::AutofillCountry; |
| 51 using autofill::AutofillType; | 51 using autofill::AutofillType; |
| 52 using autofill::ServerFieldType; | 52 using autofill::ServerFieldType; |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 address->SetString(kLanguageCode, profile.language_code()); | 630 address->SetString(kLanguageCode, profile.language_code()); |
| 631 | 631 |
| 632 std::unique_ptr<base::ListValue> components(new base::ListValue); | 632 std::unique_ptr<base::ListValue> components(new base::ListValue); |
| 633 GetAddressComponents( | 633 GetAddressComponents( |
| 634 base::UTF16ToUTF8(profile.GetRawInfo(autofill::ADDRESS_HOME_COUNTRY)), | 634 base::UTF16ToUTF8(profile.GetRawInfo(autofill::ADDRESS_HOME_COUNTRY)), |
| 635 profile.language_code(), components.get(), nullptr); | 635 profile.language_code(), components.get(), nullptr); |
| 636 address->Set(kComponents, components.release()); | 636 address->Set(kComponents, components.release()); |
| 637 } | 637 } |
| 638 | 638 |
| 639 } // namespace options | 639 } // namespace options |
| OLD | NEW |