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

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

Issue 450833002: Add additional UMA stats for remembering certificate decisions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: felt nit 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
Index: chrome/browser/ssl/ssl_blocking_page.h
diff --git a/chrome/browser/ssl/ssl_blocking_page.h b/chrome/browser/ssl/ssl_blocking_page.h
index 009fdf9651e886654824aaca6152196c0398a9f1..4f8844fc025b39dce11ef0ff0546ed5840063dfc 100644
--- a/chrome/browser/ssl/ssl_blocking_page.h
+++ b/chrome/browser/ssl/ssl_blocking_page.h
@@ -56,14 +56,14 @@ class SSLBlockingPage : public content::InterstitialPageDelegate,
// Creates an SSL blocking page. If the blocking page isn't shown, the caller
// is responsible for cleaning up the blocking page, otherwise the
// interstitial takes ownership when shown.
- SSLBlockingPage(
- content::WebContents* web_contents,
- int cert_error,
- const net::SSLInfo& ssl_info,
- const GURL& request_url,
- bool overridable,
- bool strict_enforcement,
- const base::Callback<void(bool)>& callback);
+ SSLBlockingPage(content::WebContents* web_contents,
+ int cert_error,
+ const net::SSLInfo& ssl_info,
+ const GURL& request_url,
+ bool overridable,
sky 2014/08/12 16:47:31 A bitmask would make this code more readable.
felt 2014/08/12 16:50:28 Do you mean condense overridable, strict_enforceme
jww 2014/08/12 19:23:42 I think sky is suggesting that call sites will be
+ bool strict_enforcement,
+ bool expired_but_previously_allowed,
+ const base::Callback<void(bool)>& callback);
// A method that sets strings in the specified dictionary from the passed
// vector so that they can be used to resource the ssl_roadblock.html/
@@ -120,6 +120,9 @@ class SSLBlockingPage : public content::InterstitialPageDelegate,
bool captive_portal_no_response_;
// Was a captive portal detected?
bool captive_portal_detected_;
+ // Did the user previously allow a bad certificate but the decision has now
+ // expired?
+ bool expired_but_previously_allowed_;
sky 2014/08/12 16:47:31 const? Probably on all similar members.
jww 2014/08/12 19:23:42 Done.
content::NotificationRegistrar registrar_;

Powered by Google App Engine
This is Rietveld 408576698