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

Unified Diff: chrome/browser/ssl/ssl_blocking_page.cc

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios Created 4 years, 3 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/ssl/ssl_blocking_page.cc
diff --git a/chrome/browser/ssl/ssl_blocking_page.cc b/chrome/browser/ssl/ssl_blocking_page.cc
index 0672e235e7305e9d801c7ebf82bfa755d78a5f5d..90e04166b8477b1f216e9ec568aaac2be5a42682 100644
--- a/chrome/browser/ssl/ssl_blocking_page.cc
+++ b/chrome/browser/ssl/ssl_blocking_page.cc
@@ -26,7 +26,6 @@
#include "components/security_interstitials/core/controller_client.h"
#include "components/security_interstitials/core/metrics_helper.h"
#include "components/security_interstitials/core/ssl_error_ui.h"
-#include "content/public/browser/cert_store.h"
#include "content/public/browser/interstitial_page.h"
#include "content/public/browser/interstitial_page_delegate.h"
#include "content/public/browser/navigation_entry.h"
@@ -193,13 +192,8 @@ void SSLBlockingPage::PopulateInterstitialStrings(
}
void SSLBlockingPage::OverrideEntry(NavigationEntry* entry) {
- const int process_id = web_contents()->GetRenderProcessHost()->GetID();
- const int cert_id = content::CertStore::GetInstance()->StoreCert(
- ssl_info_.cert.get(), process_id);
- DCHECK(cert_id);
-
entry->GetSSL() = content::SSLStatus(
- content::SECURITY_STYLE_AUTHENTICATION_BROKEN, cert_id, ssl_info_);
+ content::SECURITY_STYLE_AUTHENTICATION_BROKEN, ssl_info_.cert, ssl_info_);
}
void SSLBlockingPage::SetSSLCertReporterForTesting(
« no previous file with comments | « chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698