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

Unified Diff: chrome/browser/payments/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
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 bd23df5eb07fa7c9ab63c434df803cde7070e57a..44126e7a6d82c7147011ead9bdee0e8fe8379eff 100644
--- a/chrome/browser/payments/chrome_payment_request_delegate.cc
+++ b/chrome/browser/payments/chrome_payment_request_delegate.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/autofill/validation_rules_storage_factory.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/payments/ssl_validity_checker.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "components/autofill/core/browser/personal_data_manager.h"
@@ -55,6 +56,14 @@ bool ChromePaymentRequestDelegate::IsIncognito() const {
return profile && profile->GetProfileType() == Profile::INCOGNITO_PROFILE;
}
+bool ChromePaymentRequestDelegate::IsSslCertificateValid() {
+ return SslValidityChecker::IsSslCertificateValid(web_contents_);
+}
+
+const GURL& ChromePaymentRequestDelegate::GetLastCommittedURL() const {
+ return web_contents_->GetLastCommittedURL();
+}
+
void ChromePaymentRequestDelegate::DoFullCardRequest(
const autofill::CreditCard& credit_card,
base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
« no previous file with comments | « chrome/browser/payments/chrome_payment_request_delegate.h ('k') | chrome/browser/payments/ssl_validity_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698