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

Unified Diff: chrome/browser/about_flags.cc

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 180cc403c8157318dc2294b4b5b27559d973a9d3..03c7d256d5d8ffcdaab0d454950aa28a8b88caad 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -491,6 +491,27 @@ const Experiment::Choice kEnableSettingsWindowChoices[] = {
::switches::kDisableSettingsWindow, "" },
};
+// Note that the value is specified in seconds (where 0 is equivalent to
+// disabled).
+const Experiment::Choice kRememberCertificateErrorDecisionsChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
+ switches::kRememberCertErrorDecisions,
felt 2014/07/07 22:26:39 FYI: FieldTrials doesn't currently support flag=va
jww 2014/07/08 17:35:41 Isn't it simpler than that? In my previous experim
felt 2014/07/08 17:52:48 If you want to track forcing flags, I believe you
jww 2014/07/08 23:49:01 Got it. I've switched to pure flags style.
+ "0" },
+ { IDS_REMEMBER_CERTIFICATE_ERROR_DECISION_CHOICE_ONE_DAY,
+ switches::kRememberCertErrorDecisions,
+ "86400" },
+ { IDS_REMEMBER_CERTIFICATE_ERROR_DECISION_CHOICE_THREE_DAYS,
+ switches::kRememberCertErrorDecisions,
+ "259200" },
+ { IDS_REMEMBER_CERTIFICATE_ERROR_DECISION_CHOICE_ONE_WEEK,
+ switches::kRememberCertErrorDecisions,
+ "604800" },
+ { IDS_REMEMBER_CERTIFICATE_ERROR_DECISION_CHOICE_ONE_MONTH,
+ switches::kRememberCertErrorDecisions,
+ "2592000" },
+};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the experiment is the internal name. If you'd like to
@@ -1955,6 +1976,13 @@ const Experiment kExperiments[] = {
SINGLE_VALUE_TYPE(chromeos::switches::kEnableOkGoogleVoiceSearch)
},
#endif
+ {
+ "remember-cert-error-decisions",
+ IDS_FLAGS_REMEMBER_CERTIFICATE_ERROR_DECISIONS_NAME,
+ IDS_FLAGS_REMEMBER_CERTIFICATE_ERROR_DECISIONS_DESCRIPTION,
+ kOsAll,
+ MULTI_VALUE_TYPE(kRememberCertificateErrorDecisionsChoices)
+ },
};
const Experiment* experiments = kExperiments;

Powered by Google App Engine
This is Rietveld 408576698