summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjwd <jwd@chromium.org>2016-03-21 07:40:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-21 14:41:43 +0000
commit421086f1db7126561c8151cbbe8386fa04ca6830 (patch)
tree95648826f5b366cd7109a23030482761cfb9a04f /chrome/common
parent54e1ece8abfcf5f93f05ba64e06c89f3b1f50d6c (diff)
downloadchromium_src-421086f1db7126561c8151cbbe8386fa04ca6830.zip
chromium_src-421086f1db7126561c8151cbbe8386fa04ca6830.tar.gz
chromium_src-421086f1db7126561c8151cbbe8386fa04ca6830.tar.bz2
Adding logging of uma enable checkbox default state pref value. This exposes a way of recording the default state during startup, and adds the recorded state to the system_profile.
This cl does not include code that actually sets the state from any first-run flow. BUG=596185 Review URL: https://codereview.chromium.org/1732153002 Cr-Commit-Position: refs/heads/master@{#382282}
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/pref_names.cc7
-rw-r--r--chrome/common/pref_names.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index d7a852c..dd8459b 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -1289,6 +1289,13 @@ const char kCrashReportingEnabled[] =
"user_experience_metrics_crash.reporting_enabled";
#endif
+// An enum value indicating the default value of the enable metrics reporting
+// checkbox shown during first-run. If it's opt-in, then the checkbox defaulted
+// to unchecked, if it's opt-out, then it defaulted to checked. This value is
+// only recorded during first-run, so older clients will not set it. The enum
+// used for the value is metrics::MetricsServiceClient::EnableMetricsDefault.
+const char kMetricsDefaultOptIn[] = "user_experience_metrics.default_opt_in";
+
// This is the location of a list of dictionaries of plugin stability stats.
const char kStabilityPluginStats[] =
"user_experience_metrics.stability.plugin_stats2";
diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h
index 80287c5..b65f79c 100644
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -439,6 +439,8 @@ extern const char kGLVersionString[];
extern const char kCrashReportingEnabled[];
#endif
+extern const char kMetricsDefaultOptIn[];
+
extern const char kDeviceOpenNetworkConfiguration[];
extern const char kProfileLastUsed[];