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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/guid.h" | 11 #include "base/guid.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/autofill/autofill_country.h" | |
18 #include "chrome/browser/autofill/autofill_profile.h" | |
19 #include "chrome/browser/autofill/credit_card.h" | |
20 #include "chrome/browser/autofill/personal_data_manager.h" | |
21 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 17 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
22 #include "chrome/browser/autofill/phone_number_i18n.h" | |
23 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/ui/autofill/country_combobox_model.h" | 19 #include "chrome/browser/ui/autofill/country_combobox_model.h" |
25 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "components/autofill/browser/autofill_country.h" |
| 22 #include "components/autofill/browser/autofill_profile.h" |
| 23 #include "components/autofill/browser/credit_card.h" |
| 24 #include "components/autofill/browser/personal_data_manager.h" |
| 25 #include "components/autofill/browser/phone_number_i18n.h" |
26 #include "components/autofill/common/autofill_constants.h" | 26 #include "components/autofill/common/autofill_constants.h" |
27 #include "content/public/browser/web_ui.h" | 27 #include "content/public/browser/web_ui.h" |
28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
30 #include "ui/webui/web_ui_util.h" | 30 #include "ui/webui/web_ui_util.h" |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // Sets data related to the country <select>. | 34 // Sets data related to the country <select>. |
35 void SetCountryData(DictionaryValue* localized_strings) { | 35 void SetCountryData(DictionaryValue* localized_strings) { |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 web_ui()->CallJavascriptFunction( | 582 web_ui()->CallJavascriptFunction( |
583 "AutofillEditAddressOverlay.setValidatedPhoneNumbers", *list_value); | 583 "AutofillEditAddressOverlay.setValidatedPhoneNumbers", *list_value); |
584 } | 584 } |
585 | 585 |
586 bool AutofillOptionsHandler::IsPersonalDataLoaded() const { | 586 bool AutofillOptionsHandler::IsPersonalDataLoaded() const { |
587 return personal_data_ && personal_data_->IsDataLoaded(); | 587 return personal_data_ && personal_data_->IsDataLoaded(); |
588 } | 588 } |
589 | 589 |
590 } // namespace options | 590 } // namespace options |
OLD | NEW |