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

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

Issue 450833002: Add additional UMA stats for remembering certificate decisions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 years, 4 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/ssl/ssl_blocking_page.cc ('k') | chromecast/shell/browser/cast_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ea3d50ce0e867e06e232c89b4cf3bf5d2329b0b2..22c98e0217d85e57c8ab96022142bb5017180fcb 100644
--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
@@ -74,9 +74,16 @@ SSLBlockingPage* CreateSSLBlockingPage(content::WebContents* web_contents) {
ssl_info.cert = new net::X509Certificate(
request_url.host(), "CA", base::Time::Max(), base::Time::Max());
// This delegate doesn't create an interstitial.
- return new SSLBlockingPage(web_contents, cert_error, ssl_info,
- request_url, overridable,
- strict_enforcement,
+ int options_mask = 0;
+ if (overridable)
+ options_mask = SSLBlockingPage::OVERRIDABLE;
+ if (strict_enforcement)
+ options_mask = SSLBlockingPage::STRICT_ENFORCEMENT;
+ return new SSLBlockingPage(web_contents,
+ cert_error,
+ ssl_info,
+ request_url,
+ options_mask,
base::Callback<void(bool)>());
}
« no previous file with comments | « chrome/browser/ssl/ssl_blocking_page.cc ('k') | chromecast/shell/browser/cast_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698