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

Unified Diff: components/security_state/security_state_model.cc

Issue 2344043003: Rename HTTP bad-related flags to be more clear (Closed)
Patch Set: Make git cl format obey my will 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 50560e4e16eca4045df7abb52b4e313420b48f30..d532c120dac1984b00f100ec16cf8ba19a1a48d5 100644
--- a/components/security_state/security_state_model.cc
+++ b/components/security_state/security_state_model.cc
@@ -21,27 +21,27 @@ namespace {
SecurityStateModel::SecurityLevel GetSecurityLevelForNonSecureFieldTrial() {
std::string choice =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kMarkNonSecureAs);
+ switches::kMarkHttpAs);
std::string group = base::FieldTrialList::FindFullName("MarkNonSecureAs");
// Do not change this enum. It is used in the histogram.
- enum MarkNonSecureStatus { NEUTRAL, DUBIOUS, NON_SECURE, LAST_STATUS };
+ enum MarkHttpStatus { NEUTRAL, DUBIOUS, NON_SECURE, LAST_STATUS };
estark 2016/09/22 23:53:53 Just a heads-up, I think this will either conflict
const char kEnumeration[] = "MarkNonSecureAs";
SecurityStateModel::SecurityLevel level = SecurityStateModel::NONE;
- MarkNonSecureStatus status;
+ MarkHttpStatus status;
- if (choice == switches::kMarkNonSecureAsNeutral) {
+ if (choice == switches::kMarkHttpAsNeutral) {
status = NEUTRAL;
level = SecurityStateModel::NONE;
- } else if (choice == switches::kMarkNonSecureAsNonSecure) {
+ } else if (choice == switches::kMarkHttpAsNonSecure) {
status = NON_SECURE;
level = SecurityStateModel::SECURITY_ERROR;
- } else if (group == switches::kMarkNonSecureAsNeutral ||
- group == switches::kMarkNonSecureWithPasswordsOrCcAsNonSecure) {
+ } else if (group == switches::kMarkHttpAsNeutral ||
+ group == switches::kMarkHttpWithPasswordsOrCcWithChip) {
status = NEUTRAL;
level = SecurityStateModel::NONE;
- } else if (group == switches::kMarkNonSecureAsNonSecure) {
+ } else if (group == switches::kMarkHttpAsNonSecure) {
status = NON_SECURE;
level = SecurityStateModel::SECURITY_ERROR;
} else {
« 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