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

Unified Diff: components/security_state/security_state_model.h

Issue 2346063002: Add new SecurityLevel for Http Bad state (Closed)
Patch Set: One moar switch statement 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: components/security_state/security_state_model.h
diff --git a/components/security_state/security_state_model.h b/components/security_state/security_state_model.h
index fc7e5f34c7d4d085098f3ac19c2b568f8d48fb3b..e2fefa7cedd498ae16fe023558adfae05498d13a 100644
--- a/components/security_state/security_state_model.h
+++ b/components/security_state/security_state_model.h
@@ -39,6 +39,12 @@ class SecurityStateModel {
// HTTP/no URL/HTTPS but with insecure passive content on the page.
NONE,
+ // CAUTION: Do ***not*** use this SecurityLevel state, except behind a
+ // switches::kMarkHttpAs flag! (https://crbug.com/647754)
Peter Kasting 2016/09/19 18:38:21 Nit: Does this caution really belong here? I'm wo
felt 2016/09/19 18:54:09 I'm afraid of someone randomly seeing it and tryin
Peter Kasting 2016/09/19 18:58:30 Why would someone randomly see it? In what sort o
felt 2016/09/20 00:20:09 Reworded, PTAL.
+ // HTTP, but something about the page (e.g., inclusion of private info)
+ // suggests we should show a warning for it.
+ HTTP_WARNING,
Peter Kasting 2016/09/19 18:38:21 Hmm. These names seem worrisome, especially since
felt 2016/09/19 18:54:09 SECURITY_WARNING is being deprecated in another CL
Peter Kasting 2016/09/19 18:58:30 If that were gone (does deprecated mean "removed"?
felt 2016/09/20 00:20:09 Lucas is removing SECURITY_WARNING completely, see
Peter Kasting 2016/09/20 00:50:05 Yay.
felt 2016/09/20 01:09:56 Sold on HTTP_SHOW_WARNING.
+
// HTTPS with valid EV cert.
EV_SECURE,
« no previous file with comments | « chrome/browser/ssl/chrome_security_state_model_client.cc ('k') | components/security_state/security_state_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698