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> |