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 |
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2529 const base::Callback<void(const FormStructure*)>& callback) | 2529 const base::Callback<void(const FormStructure*)>& callback) |
2530 : WebContentsObserver(contents), | 2530 : WebContentsObserver(contents), |
2531 profile_(Profile::FromBrowserContext(contents->GetBrowserContext())), | 2531 profile_(Profile::FromBrowserContext(contents->GetBrowserContext())), |
2532 initial_user_state_(AutofillMetrics::DIALOG_USER_STATE_UNKNOWN), | 2532 initial_user_state_(AutofillMetrics::DIALOG_USER_STATE_UNKNOWN), |
2533 form_structure_(form_structure), | 2533 form_structure_(form_structure), |
2534 invoked_from_same_origin_(true), | 2534 invoked_from_same_origin_(true), |
2535 source_url_(source_url), | 2535 source_url_(source_url), |
2536 callback_(callback), | 2536 callback_(callback), |
2537 account_chooser_model_(this, profile_, metric_logger_), | 2537 account_chooser_model_(this, profile_, metric_logger_), |
2538 wallet_client_(profile_->GetRequestContext(), this, source_url), | 2538 wallet_client_(profile_->GetRequestContext(), this, source_url), |
| 2539 validation_downloader_(profile_->GetRequestContext()), |
2539 wallet_items_requested_(false), | 2540 wallet_items_requested_(false), |
2540 handling_use_wallet_link_click_(false), | 2541 handling_use_wallet_link_click_(false), |
2541 passive_failed_(false), | 2542 passive_failed_(false), |
2542 country_combobox_model_(*GetManager()), | 2543 country_combobox_model_(*GetManager()), |
2543 suggested_cc_(this), | 2544 suggested_cc_(this), |
2544 suggested_billing_(this), | 2545 suggested_billing_(this), |
2545 suggested_cc_billing_(this), | 2546 suggested_cc_billing_(this), |
2546 suggested_shipping_(this), | 2547 suggested_shipping_(this), |
2547 cares_about_shipping_(true), | 2548 cares_about_shipping_(true), |
2548 input_showing_popup_(NULL), | 2549 input_showing_popup_(NULL), |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3541 view_->UpdateButtonStrip(); | 3542 view_->UpdateButtonStrip(); |
3542 } | 3543 } |
3543 | 3544 |
3544 void AutofillDialogControllerImpl::FetchWalletCookie() { | 3545 void AutofillDialogControllerImpl::FetchWalletCookie() { |
3545 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 3546 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
3546 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 3547 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
3547 signin_helper_->StartWalletCookieValueFetch(); | 3548 signin_helper_->StartWalletCookieValueFetch(); |
3548 } | 3549 } |
3549 | 3550 |
3550 } // namespace autofill | 3551 } // namespace autofill |
OLD | NEW |