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

Unified Diff: chrome/browser/payments/chrome_payment_request_delegate.cc

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: Fix components_unittests 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/payments/chrome_payment_request_delegate.cc
diff --git a/chrome/browser/payments/chrome_payment_request_delegate.cc b/chrome/browser/payments/chrome_payment_request_delegate.cc
index 236cbcafac571a481bce53918da107408935a129..98dda7d7ffc5d9f35730005c1a3ad24ecbccaf0a 100644
--- a/chrome/browser/payments/chrome_payment_request_delegate.cc
+++ b/chrome/browser/payments/chrome_payment_request_delegate.cc
@@ -4,11 +4,12 @@
#include "chrome/browser/payments/chrome_payment_request_delegate.h"
-#include "base/macros.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_dialogs.h"
+#include "components/autofill/content/browser/content_autofill_driver.h"
Mathieu 2017/04/04 19:05:48 remove?
anthonyvd 2017/04/04 23:02:14 Done.
+#include "components/autofill/content/browser/content_autofill_driver_factory.h"
#include "components/payments/content/payment_request_dialog.h"
#include "content/public/browser/web_contents.h"
@@ -52,4 +53,15 @@ bool ChromePaymentRequestDelegate::IsIncognito() const {
return profile && profile->GetProfileType() == Profile::INCOGNITO_PROFILE;
}
+void ChromePaymentRequestDelegate::DoFullCardRequest(
+ const autofill::CreditCard& credit_card,
+ base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
+ result_delegate) {
+ dialog_->ShowCvcUnmaskPrompt(credit_card, result_delegate);
Mathieu 2017/04/04 19:05:48 could we also pass the web_contents_ here, in whic
anthonyvd 2017/04/04 23:02:14 Good point, done.
+}
+
+content::WebContents* ChromePaymentRequestDelegate::GetWebContents() {
+ return web_contents_;
+}
+
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698