Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 123733002: WalletClient: don't bother queuing requests; we don't make multiple requests concurrently anyway (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/autofill/content/browser/wallet/wallet_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index fcfe3c47eff386a66e100d3f3172f47c129be84c..c3ae41b9b5189796092d821e6d6372b784676052 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -876,7 +876,7 @@ void AutofillDialogControllerImpl::GetWalletItems() {
wallet_items_requested_ = true;
wallet::WalletClient* wallet_client = GetWalletClient();
- wallet_client->CancelRequests();
+ wallet_client->CancelRequest();
previously_selected_instrument_id_.clear();
previously_selected_shipping_address_id_.clear();
@@ -2422,7 +2422,7 @@ void AutofillDialogControllerImpl::AccountChoiceChanged() {
wallet::WalletClient* client = GetWalletClient();
if (is_submitting_)
- client->CancelRequests();
+ client->CancelRequest();
SetIsSubmitting(false);
@@ -2626,7 +2626,7 @@ bool AutofillDialogControllerImpl::IsManuallyEditingSection(
void AutofillDialogControllerImpl::OnWalletSigninError() {
account_chooser_model_->SetHadWalletSigninError();
- GetWalletClient()->CancelRequests();
+ GetWalletClient()->CancelRequest();
LogDialogLatencyToShow();
}
@@ -2635,7 +2635,7 @@ void AutofillDialogControllerImpl::DisableWallet(
signin_helper_.reset();
wallet_items_.reset();
wallet_errors_.clear();
- GetWalletClient()->CancelRequests();
+ GetWalletClient()->CancelRequest();
SetIsSubmitting(false);
wallet_error_notification_ = GetWalletError(error_type);
account_chooser_model_->SetHadWalletError();
« no previous file with comments | « no previous file | components/autofill/content/browser/wallet/wallet_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698