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

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

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
« no previous file with comments | « chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
diff --git a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
index 914a0df62d76a4864e88e3f9f2869404e47fce00..e88457812ba04371d328fb4e8853d28e5515491e 100644
--- a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
+++ b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
@@ -16,12 +16,14 @@ TestChromePaymentRequestDelegate::TestChromePaymentRequestDelegate(
content::WebContents* web_contents,
PaymentRequestDialogView::ObserverForTest* observer,
views::WidgetObserver* widget_observer,
- bool is_incognito)
+ bool is_incognito,
+ bool is_valid_ssl)
: ChromePaymentRequestDelegate(web_contents),
address_input_provider_(nullptr),
observer_(observer),
widget_observer_(widget_observer),
- is_incognito_for_testing_(is_incognito) {}
+ is_incognito_(is_incognito),
+ is_valid_ssl_(is_valid_ssl) {}
void TestChromePaymentRequestDelegate::ShowDialog(PaymentRequest* request) {
PaymentRequestDialogView* dialog_view =
@@ -36,7 +38,11 @@ void TestChromePaymentRequestDelegate::ShowDialog(PaymentRequest* request) {
}
bool TestChromePaymentRequestDelegate::IsIncognito() const {
- return is_incognito_for_testing_;
+ return is_incognito_;
+}
+
+bool TestChromePaymentRequestDelegate::IsSslCertificateValid() {
+ return is_valid_ssl_;
}
std::unique_ptr<const ::i18n::addressinput::Source>
« no previous file with comments | « chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698