1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_METRICS_METRICS_PREF_NAMES_H_
6 #define COMPONENTS_METRICS_METRICS_PREF_NAMES_H_
8 #include "build/build_config.h"
13 // Alphabetical list of preference names specific to the metrics
14 // component. Document each in the .cc file.
15 extern const char kInstallDate[];
16 extern const char kMetricsClientID[];
17 extern const char kMetricsFileMetricsMetadata[];
18 extern const char kMetricsDefaultOptIn[];
19 extern const char kMetricsInitialLogs[];
20 extern const char kMetricsInitialLogsMetadata[];
21 extern const char kMetricsLogRecordId[];
22 extern const char kMetricsLowEntropySource[];
23 extern const char kMetricsOldLowEntropySource[];
24 extern const char kMetricsProvisionalClientID[];
25 extern const char kMetricsPseudoLowEntropySource[];
26 extern const char kMetricsMachineId[];
27 extern const char kMetricsOngoingLogs[];
28 extern const char kMetricsOngoingLogsMetadata[];
29 extern const char kMetricsResetIds[];
30 #if BUILDFLAG(IS_ANDROID)
31 extern const char kUsePostFREFixSamplingTrial[];
32 #endif // BUILDFLAG(IS_ANDROID)
34 // Preferences for cloned installs.
35 extern const char kClonedResetCount[];
36 extern const char kFirstClonedResetTimestamp[];
37 extern const char kLastClonedResetTimestamp[];
39 // For finding out whether metrics and crash reporting is enabled use the
40 // relevant embedder-specific subclass of MetricsServiceAccessor instead of
41 // reading this pref directly; see the comments on metrics_service_accessor.h.
42 // (NOTE: If within //chrome, use
43 // ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled()).
44 extern const char kMetricsReportingEnabled[];
45 extern const char kMetricsReportingEnabledTimestamp[];
46 extern const char kMetricsSessionID[];
47 extern const char kMetricsLastSeenPrefix[];
49 // Preferences for recording stability logs.
50 extern const char kStabilityBrowserLastLiveTimeStamp[];
51 extern const char kStabilityCrashCountDueToGmsCoreUpdate[];
52 // TODO(crbug/1241702): Remove this Local State pref once the new behavior
53 // launches on Android Chrome.
54 extern const char kStabilityExitedCleanly[];
55 extern const char kStabilityFileMetricsUnsentSamplesCount[];
56 extern const char kStabilityFileMetricsUnsentFilesCount[];
57 extern const char kStabilityGmsCoreVersion[];
58 #if BUILDFLAG(IS_ANDROID)
59 extern const char kStabilityLaunchCount[];
60 extern const char kStabilityPageLoadCount[];
61 extern const char kStabilityRendererLaunchCount[];
63 extern const char kStabilitySavedSystemProfile[];
64 extern const char kStabilitySavedSystemProfileHash[];
65 extern const char kStabilityStatsBuildTime[];
66 extern const char kStabilityStatsVersion[];
67 extern const char kStabilitySystemCrashCount[];
69 // For measuring data use for throttling UMA log uploads on cellular.
70 extern const char kUkmCellDataUse[];
71 extern const char kUmaCellDataUse[];
72 extern const char kUserCellDataUse[];
74 // For supporting per-user collection on Chrome OS.
75 extern const char kMetricsCurrentUserId[];
78 } // namespace metrics
80 #endif // COMPONENTS_METRICS_METRICS_PREF_NAMES_H_