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

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

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Fix typo 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/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 633d3fb5971e94c09b25b9ea4f1223cb14b3e9bd..7ee645819f7f9a0418c19689f6a8b39300f4e7d0 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
@@ -30,7 +30,8 @@ class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
content::WebContents* web_contents,
PaymentRequestDialogView::ObserverForTest* observer,
views::WidgetObserver* widget_observer,
- bool is_incognito);
+ bool is_incognito,
+ bool is_valid_ssl);
// This class allows tests to provide their own AddressInput data.
class AddressInputProvider {
@@ -48,6 +49,7 @@ class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
// ChromePaymentRequestDelegate.
void ShowDialog(PaymentRequest* request) override;
bool IsIncognito() const override;
+ bool IsSslCertificateValid() override;
std::unique_ptr<const ::i18n::addressinput::Source> GetAddressInputSource()
override;
std::unique_ptr<::i18n::addressinput::Storage> GetAddressInputStorage()
@@ -63,7 +65,8 @@ class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
PaymentRequestDialogView::ObserverForTest* observer_;
views::WidgetObserver* widget_observer_;
- bool is_incognito_for_testing_;
+ bool is_incognito_;
+ bool is_valid_ssl_;
DISALLOW_COPY_AND_ASSIGN(TestChromePaymentRequestDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698