| 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 "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/i18n/case_conversion.h" | 13 #include "base/i18n/case_conversion.h" |
| 14 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/prefs/pref_registry_simple.h" | 16 #include "base/prefs/pref_registry_simple.h" |
| 17 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
| 18 #include "base/prefs/scoped_user_pref_update.h" | 18 #include "base/prefs/scoped_user_pref_update.h" |
| 19 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
| 20 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
| 21 #include "base/strings/string_split.h" | 21 #include "base/strings/string_split.h" |
| 22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
| 24 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 24 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 25 #include "chrome/browser/autofill/risk_util.h" | 25 #include "chrome/browser/autofill/risk_util.h" |
| 26 #include "chrome/browser/autofill/validation_rules_storage_factory.h" | 26 #include "chrome/browser/autofill/validation_rules_storage_factory.h" |
| 27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
| 29 #include "chrome/browser/ui/autofill/autofill_dialog_common.h" | |
| 30 #include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h" | 29 #include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h" |
| 31 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 30 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
| 32 #include "chrome/browser/ui/autofill/data_model_wrapper.h" | 31 #include "chrome/browser/ui/autofill/data_model_wrapper.h" |
| 33 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" | 32 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
| 34 #include "chrome/browser/ui/autofill/new_credit_card_bubble_controller.h" | 33 #include "chrome/browser/ui/autofill/new_credit_card_bubble_controller.h" |
| 35 #include "chrome/browser/ui/browser.h" | 34 #include "chrome/browser/ui/browser.h" |
| 36 #include "chrome/browser/ui/browser_finder.h" | 35 #include "chrome/browser/ui/browser_finder.h" |
| 37 #include "chrome/browser/ui/browser_navigator.h" | 36 #include "chrome/browser/ui/browser_navigator.h" |
| 38 #include "chrome/browser/ui/browser_window.h" | 37 #include "chrome/browser/ui/browser_window.h" |
| 39 #include "chrome/common/pref_names.h" | 38 #include "chrome/common/pref_names.h" |
| 40 #include "chrome/common/render_messages.h" | 39 #include "chrome/common/render_messages.h" |
| 41 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
| 42 #include "chrome/grit/chromium_strings.h" | 41 #include "chrome/grit/chromium_strings.h" |
| 43 #include "chrome/grit/generated_resources.h" | 42 #include "chrome/grit/generated_resources.h" |
| 44 #include "components/autofill/content/browser/wallet/form_field_error.h" | 43 #include "components/autofill/content/browser/wallet/form_field_error.h" |
| 45 #include "components/autofill/content/browser/wallet/full_wallet.h" | 44 #include "components/autofill/content/browser/wallet/full_wallet.h" |
| 46 #include "components/autofill/content/browser/wallet/gaia_account.h" | 45 #include "components/autofill/content/browser/wallet/gaia_account.h" |
| 47 #include "components/autofill/content/browser/wallet/instrument.h" | 46 #include "components/autofill/content/browser/wallet/instrument.h" |
| 48 #include "components/autofill/content/browser/wallet/wallet_address.h" | 47 #include "components/autofill/content/browser/wallet/wallet_address.h" |
| 49 #include "components/autofill/content/browser/wallet/wallet_items.h" | 48 #include "components/autofill/content/browser/wallet/wallet_items.h" |
| 50 #include "components/autofill/content/browser/wallet/wallet_service_url.h" | 49 #include "components/autofill/content/browser/wallet/wallet_service_url.h" |
| 51 #include "components/autofill/content/browser/wallet/wallet_signin_helper.h" | 50 #include "components/autofill/content/browser/wallet/wallet_signin_helper.h" |
| 52 #include "components/autofill/core/browser/address_i18n.h" | 51 #include "components/autofill/core/browser/address_i18n.h" |
| 53 #include "components/autofill/core/browser/autofill_country.h" | 52 #include "components/autofill/core/browser/autofill_country.h" |
| 54 #include "components/autofill/core/browser/autofill_data_model.h" | 53 #include "components/autofill/core/browser/autofill_data_model.h" |
| 55 #include "components/autofill/core/browser/autofill_manager.h" | 54 #include "components/autofill/core/browser/autofill_manager.h" |
| 56 #include "components/autofill/core/browser/autofill_type.h" | 55 #include "components/autofill/core/browser/autofill_type.h" |
| 57 #include "components/autofill/core/browser/personal_data_manager.h" | 56 #include "components/autofill/core/browser/personal_data_manager.h" |
| 58 #include "components/autofill/core/browser/phone_number_i18n.h" | 57 #include "components/autofill/core/browser/phone_number_i18n.h" |
| 58 #include "components/autofill/core/browser/ui/autofill_dialog_common.h" |
| 59 #include "components/autofill/core/browser/validation.h" | 59 #include "components/autofill/core/browser/validation.h" |
| 60 #include "components/autofill/core/common/autofill_pref_names.h" | 60 #include "components/autofill/core/common/autofill_pref_names.h" |
| 61 #include "components/autofill/core/common/form_data.h" | 61 #include "components/autofill/core/common/form_data.h" |
| 62 #include "components/pref_registry/pref_registry_syncable.h" | 62 #include "components/pref_registry/pref_registry_syncable.h" |
| 63 #include "content/public/browser/browser_thread.h" | 63 #include "content/public/browser/browser_thread.h" |
| 64 #include "content/public/browser/geolocation_provider.h" | 64 #include "content/public/browser/geolocation_provider.h" |
| 65 #include "content/public/browser/navigation_controller.h" | 65 #include "content/public/browser/navigation_controller.h" |
| 66 #include "content/public/browser/navigation_details.h" | 66 #include "content/public/browser/navigation_details.h" |
| 67 #include "content/public/browser/navigation_entry.h" | 67 #include "content/public/browser/navigation_entry.h" |
| 68 #include "content/public/browser/notification_service.h" | 68 #include "content/public/browser/notification_service.h" |
| (...skipping 4040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4109 view_->UpdateButtonStrip(); | 4109 view_->UpdateButtonStrip(); |
| 4110 } | 4110 } |
| 4111 | 4111 |
| 4112 void AutofillDialogControllerImpl::FetchWalletCookie() { | 4112 void AutofillDialogControllerImpl::FetchWalletCookie() { |
| 4113 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 4113 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
| 4114 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 4114 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
| 4115 signin_helper_->StartWalletCookieValueFetch(); | 4115 signin_helper_->StartWalletCookieValueFetch(); |
| 4116 } | 4116 } |
| 4117 | 4117 |
| 4118 } // namespace autofill | 4118 } // namespace autofill |
| OLD | NEW |