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

Unified Diff: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h

Issue 2772103002: [Payments] Desktop: never return false in incognito mode for canMakePayment (Closed)
Patch Set: Created 3 years, 9 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/ui/views/payments/test_chrome_payment_request_delegate.h
diff --git a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
index e336e7b9ceac8e94ee6067da228448ebdb708358..09e639310503c32e4abaa3db6360e2d248078f43 100644
--- a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
+++ b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
@@ -27,9 +27,11 @@ class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
TestChromePaymentRequestDelegate(
content::WebContents* web_contents,
PaymentRequestDialogView::ObserverForTest* observer,
- views::WidgetObserver* widget_observer);
+ views::WidgetObserver* widget_observer,
+ bool is_incognito);
void ShowDialog(PaymentRequest* request) override;
+ bool IsIncognito() const override;
PaymentRequestDialogView* dialog_view() {
return static_cast<PaymentRequestDialogView*>(dialog_);
@@ -38,6 +40,7 @@ class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
private:
PaymentRequestDialogView::ObserverForTest* observer_;
views::WidgetObserver* widget_observer_;
+ bool is_incognito_for_testing_;
DISALLOW_COPY_AND_ASSIGN(TestChromePaymentRequestDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698