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

Side by Side Diff: chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc

Issue 2806533002: [Web Payments] Show a spinner after unmasking a card. (Closed)
Patch Set: Add comment. Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_dialog_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/views/payments/cvc_unmask_view_controller.h" 5 #include "chrome/browser/ui/views/payments/cvc_unmask_view_controller.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/autofill/risk_util.h" 8 #include "chrome/browser/autofill/risk_util.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
11 #include "chrome/browser/signin/signin_manager_factory.h" 11 #include "chrome/browser/signin/signin_manager_factory.h"
12 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h"
12 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h" 13 #include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
13 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" 14 #include "chrome/browser/ui/views/payments/payment_request_views_util.h"
14 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
15 #include "components/autofill/core/browser/credit_card.h" 16 #include "components/autofill/core/browser/credit_card.h"
16 #include "components/autofill/core/browser/payments/full_card_request.h" 17 #include "components/autofill/core/browser/payments/full_card_request.h"
17 #include "components/grit/components_scaled_resources.h" 18 #include "components/grit/components_scaled_resources.h"
18 #include "components/payments/content/payment_request_state.h" 19 #include "components/payments/content/payment_request_state.h"
19 #include "components/payments/core/payment_request_delegate.h" 20 #include "components/payments/core/payment_request_delegate.h"
20 #include "components/signin/core/browser/profile_identity_provider.h" 21 #include "components/signin/core/browser/profile_identity_provider.h"
21 #include "components/signin/core/browser/signin_manager.h" 22 #include "components/signin/core/browser/signin_manager.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 187 }
187 } 188 }
188 189
189 void CvcUnmaskViewController::CvcConfirmed() { 190 void CvcUnmaskViewController::CvcConfirmed() {
190 const base::string16& cvc = cvc_field_->text(); 191 const base::string16& cvc = cvc_field_->text();
191 if (unmask_delegate_) { 192 if (unmask_delegate_) {
192 autofill::CardUnmaskDelegate::UnmaskResponse response; 193 autofill::CardUnmaskDelegate::UnmaskResponse response;
193 response.cvc = cvc; 194 response.cvc = cvc;
194 unmask_delegate_->OnUnmaskResponse(response); 195 unmask_delegate_->OnUnmaskResponse(response);
195 } 196 }
197
198 dialog()->ShowProcessingSpinner();
196 } 199 }
197 200
198 } // namespace payments 201 } // namespace payments
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698