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

Unified Diff: chrome/browser/ui/webui/interstitials/interstitial_ui.cc

Issue 2084153003: Remove the test-only X509Certificate constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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/webui/interstitials/interstitial_ui.cc
diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
index a391b40ebc44450df93f2495be6def7847020be7..56487f09fad6a7f7b393082f9fe93c4d909dc365 100644
--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
@@ -121,8 +121,6 @@ SSLBlockingPage* CreateSSLBlockingPage(content::WebContents* web_contents) {
strict_enforcement = strict_enforcement_param == "1";
}
net::SSLInfo ssl_info;
- ssl_info.cert = new net::X509Certificate(
- request_url.host(), "CA", base::Time::Max(), base::Time::Max());
// This delegate doesn't create an interstitial.
int options_mask = 0;
if (overridable)
@@ -170,8 +168,6 @@ BadClockBlockingPage* CreateBadClockBlockingPage(
}
net::SSLInfo ssl_info;
- ssl_info.cert = new net::X509Certificate(
- request_url.host(), "CA", base::Time::Max(), base::Time::Max());
// This delegate doesn't create an interstitial.
int options_mask = 0;
if (overridable)
@@ -268,8 +264,6 @@ CaptivePortalBlockingPage* CreateCaptivePortalBlockingPage(
wifi_ssid = wifi_ssid_param;
}
net::SSLInfo ssl_info;
- ssl_info.cert = new net::X509Certificate(
- request_url.host(), "CA", base::Time::Max(), base::Time::Max());
CaptivePortalBlockingPage* blocking_page =
new CaptivePortalBlockingPageWithNetInfo(
web_contents, request_url, landing_url, ssl_info,
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings_unittest.cc ('k') | content/browser/loader/resource_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698