| 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 section, country_code, inputs, | 832 section, country_code, inputs, |
| 833 MutableAddressLanguageCodeForSection(section)); | 833 MutableAddressLanguageCodeForSection(section)); |
| 834 } | 834 } |
| 835 | 835 |
| 836 // Test whether we need to show the shipping section. If filling that section | 836 // Test whether we need to show the shipping section. If filling that section |
| 837 // would be a no-op, don't show it. | 837 // would be a no-op, don't show it. |
| 838 cares_about_shipping_ = form_structure_.FillFields( | 838 cares_about_shipping_ = form_structure_.FillFields( |
| 839 RequestedTypesForSection(SECTION_SHIPPING), | 839 RequestedTypesForSection(SECTION_SHIPPING), |
| 840 base::Bind(common::ServerTypeMatchesField, SECTION_SHIPPING), | 840 base::Bind(common::ServerTypeMatchesField, SECTION_SHIPPING), |
| 841 base::Bind(NullGetInfo), | 841 base::Bind(NullGetInfo), |
| 842 std::string(), |
| 842 g_browser_process->GetApplicationLocale()); | 843 g_browser_process->GetApplicationLocale()); |
| 843 | 844 |
| 844 transaction_amount_ = form_structure_.GetUniqueValue( | 845 transaction_amount_ = form_structure_.GetUniqueValue( |
| 845 HTML_TYPE_TRANSACTION_AMOUNT); | 846 HTML_TYPE_TRANSACTION_AMOUNT); |
| 846 transaction_currency_ = form_structure_.GetUniqueValue( | 847 transaction_currency_ = form_structure_.GetUniqueValue( |
| 847 HTML_TYPE_TRANSACTION_CURRENCY); | 848 HTML_TYPE_TRANSACTION_CURRENCY); |
| 848 | 849 |
| 849 account_chooser_model_.reset( | 850 account_chooser_model_.reset( |
| 850 new AccountChooserModel(this, | 851 new AccountChooserModel(this, |
| 851 profile_, | 852 profile_, |
| (...skipping 3305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4157 view_->UpdateButtonStrip(); | 4158 view_->UpdateButtonStrip(); |
| 4158 } | 4159 } |
| 4159 | 4160 |
| 4160 void AutofillDialogControllerImpl::FetchWalletCookie() { | 4161 void AutofillDialogControllerImpl::FetchWalletCookie() { |
| 4161 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 4162 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
| 4162 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 4163 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
| 4163 signin_helper_->StartWalletCookieValueFetch(); | 4164 signin_helper_->StartWalletCookieValueFetch(); |
| 4164 } | 4165 } |
| 4165 | 4166 |
| 4166 } // namespace autofill | 4167 } // namespace autofill |
| OLD | NEW |