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

Unified Diff: components/metrics/metrics_pref_names.cc

Issue 312583002: Move MetricsStateManager into the Metrics component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/metrics/metrics_pref_names.cc
diff --git a/components/metrics/metrics_pref_names.cc b/components/metrics/metrics_pref_names.cc
index e0b358a19e5fc76ff7a471f24337c846dbe1c87c..e6cbe6084fd0c1e546679a152e67c726c887c8a5 100644
--- a/components/metrics/metrics_pref_names.cc
+++ b/components/metrics/metrics_pref_names.cc
@@ -7,6 +7,31 @@
namespace metrics {
namespace prefs {
+// The metrics client GUID, entropy source and session ID.
+// Note: The names client_id2 and low_entropy_source2 are a result of creating
+// new prefs to do a one-time reset of the previous values.
+const char kMetricsClientID[] = "user_experience_metrics.client_id2";
+const char kMetricsSessionID[] = "user_experience_metrics.session_id";
Alexei Svitkine (slow) 2014/06/02 20:35:43 This is only used from MetricsService, so I don't
blundell 2014/06/03 15:46:48 Do you mind if I keep it here now that I've moved
Alexei Svitkine (slow) 2014/06/03 17:37:00 OK sure. We'll just need to remove the metrics:: p
+const char kMetricsLowEntropySource[] =
+ "user_experience_metrics.low_entropy_source2";
+
+// Old client id and low entropy source values, cleared the first time this
+// version is launched.
+// TODO(asvitkine): Delete these after a few releases have gone by and old
+// values have been cleaned up. http://crbug.com/357704
+const char kMetricsOldClientID[] = "user_experience_metrics.client_id";
+const char kMetricsOldLowEntropySource[] =
+ "user_experience_metrics.low_entropy_source";
+
+// Boolean that specifies whether or not crash reporting and metrics reporting
+// are sent over the network for analysis.
+const char kMetricsReportingEnabled[] =
+ "user_experience_metrics.reporting_enabled";
Alexei Svitkine (slow) 2014/06/02 20:35:43 This pref is actually queried through a callback w
blundell 2014/06/03 15:46:48 Done.
+// Date/time when the user opted in to UMA and generated the client id for the
+// very first time (local machine time, stored as a 64-bit time_t value).
+const char kMetricsReportingEnabledTimestamp[] =
+ "user_experience_metrics.client_id_timestamp";
+
// Array of strings that are each UMA logs that were supposed to be sent in the
// first minute of a browser session. These logs include things like crash count
// info, etc.

Powered by Google App Engine
This is Rietveld 408576698