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

Unified Diff: components/security_state/security_state_model.cc

Issue 2337103002: Add a new flag for HTTP-bad Phase 1 development work (Closed)
Patch Set: git cl format 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.cc
diff --git a/components/security_state/security_state_model.cc b/components/security_state/security_state_model.cc
index 7ad3ceae00194dee0d98fe253dc6f3f1e98919c4..a332b26c83e2e60d21be221c66761dfab83a2dad 100644
--- a/components/security_state/security_state_model.cc
+++ b/components/security_state/security_state_model.cc
@@ -37,7 +37,8 @@ SecurityStateModel::SecurityLevel GetSecurityLevelForNonSecureFieldTrial() {
} else if (choice == switches::kMarkNonSecureAsNonSecure) {
status = NON_SECURE;
level = SecurityStateModel::SECURITY_ERROR;
- } else if (group == switches::kMarkNonSecureAsNeutral) {
+ } else if (group == switches::kMarkNonSecureAsNeutral ||
+ group == switches::kMarkNonSecureWhenPasswordOrCc) {
status = NEUTRAL;
level = SecurityStateModel::NONE;
} else if (group == switches::kMarkNonSecureAsNonSecure) {

Powered by Google App Engine
This is Rietveld 408576698