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

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: Clean up dirty tree 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | components/security_state/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..50560e4e16eca4045df7abb52b4e313420b48f30 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::kMarkNonSecureWithPasswordsOrCcAsNonSecure) {
status = NEUTRAL;
level = SecurityStateModel::NONE;
} else if (group == switches::kMarkNonSecureAsNonSecure) {
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | components/security_state/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698