Files.app: make default-action as a command.
[chromium-blink-merge.git] / components / metrics / metrics_pref_names.cc
blob187b9042aded82c0dc110b51c3580319f152f554
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/metrics/metrics_pref_names.h"
7 namespace metrics {
8 namespace prefs {
10 // Set once, to the current epoch time, on the first run of chrome on this
11 // machine. Attached to metrics reports forever thereafter.
12 const char kInstallDate[] = "uninstall_metrics.installation_date2";
14 // The metrics client GUID.
15 // Note: The name client_id2 is a result of creating
16 // new prefs to do a one-time reset of the previous values.
17 const char kMetricsClientID[] = "user_experience_metrics.client_id2";
19 // Array of strings that are each UMA logs that were supposed to be sent in the
20 // first minute of a browser session. These logs include things like crash count
21 // info, etc.
22 const char kMetricsInitialLogs[] =
23 "user_experience_metrics.initial_logs_list";
25 // The metrics entropy source.
26 // Note: The name low_entropy_source2 is a result of creating
27 // new prefs to do a one-time reset of the previous values.
28 const char kMetricsLowEntropySource[] =
29 "user_experience_metrics.low_entropy_source2";
31 // A machine ID used to detect when underlying hardware changes. It is only
32 // stored locally and never transmitted in metrics reports.
33 const char kMetricsMachineId[] = "user_experience_metrics.machine_id";
35 // Array of strings that are each UMA logs that were not sent because the
36 // browser terminated before these accumulated metrics could be sent. These
37 // logs typically include histograms and memory reports, as well as ongoing
38 // user activities.
39 const char kMetricsOngoingLogs[] =
40 "user_experience_metrics.ongoing_logs_list";
42 // Boolean that indicates a cloned install has been detected and the metrics
43 // client id and low entropy source should be reset.
44 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids";
46 // Date/time when the user opted in to UMA and generated the client id for the
47 // very first time (local machine time, stored as a 64-bit time_t value).
48 const char kMetricsReportingEnabledTimestamp[] =
49 "user_experience_metrics.client_id_timestamp";
51 // The metrics client session ID.
52 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
54 // Number of times the browser has been able to register crash reporting.
55 const char kStabilityBreakpadRegistrationSuccess[] =
56 "user_experience_metrics.stability.breakpad_registration_ok";
58 // Number of times the browser has failed to register crash reporting.
59 const char kStabilityBreakpadRegistrationFail[] =
60 "user_experience_metrics.stability.breakpad_registration_fail";
62 // Number of times the application exited uncleanly since the last report.
63 const char kStabilityCrashCount[] =
64 "user_experience_metrics.stability.crash_count";
66 // Number of times the browser has been run under a debugger.
67 const char kStabilityDebuggerPresent[] =
68 "user_experience_metrics.stability.debugger_present";
70 // Number of times the browser has not been run under a debugger.
71 const char kStabilityDebuggerNotPresent[] =
72 "user_experience_metrics.stability.debugger_not_present";
74 // An enum value to indicate the execution phase the browser was in.
75 const char kStabilityExecutionPhase[] =
76 "user_experience_metrics.stability.execution_phase";
78 // True if the previous run of the program exited cleanly.
79 const char kStabilityExitedCleanly[] =
80 "user_experience_metrics.stability.exited_cleanly";
82 // Number of times the session end did not complete.
83 const char kStabilityIncompleteSessionEndCount[] =
84 "user_experience_metrics.stability.incomplete_session_end_count";
86 // Time when the app was last known to be running, in seconds since
87 // the epoch.
88 const char kStabilityLastTimestampSec[] =
89 "user_experience_metrics.stability.last_timestamp_sec";
91 // Number of times the application was launched since last report.
92 const char kStabilityLaunchCount[] =
93 "user_experience_metrics.stability.launch_count";
95 // Time when the app was last launched, in seconds since the epoch.
96 const char kStabilityLaunchTimeSec[] =
97 "user_experience_metrics.stability.launch_time_sec";
99 // Base64 encoded serialized UMA system profile proto from the previous session.
100 const char kStabilitySavedSystemProfile[] =
101 "user_experience_metrics.stability.saved_system_profile";
103 // SHA-1 hash of the serialized UMA system profile proto (hex encoded).
104 const char kStabilitySavedSystemProfileHash[] =
105 "user_experience_metrics.stability.saved_system_profile_hash";
107 // False if we received a session end and either we crashed during processing
108 // the session end or ran out of time and windows terminated us.
109 const char kStabilitySessionEndCompleted[] =
110 "user_experience_metrics.stability.session_end_completed";
112 // Build time, in seconds since an epoch, which is used to assure that stability
113 // metrics reported reflect stability of the same build.
114 const char kStabilityStatsBuildTime[] =
115 "user_experience_metrics.stability.stats_buildtime";
117 // Version string of previous run, which is used to assure that stability
118 // metrics reported under current version reflect stability of the same version.
119 const char kStabilityStatsVersion[] =
120 "user_experience_metrics.stability.stats_version";
122 // The keys below are strictly increasing counters over the lifetime of
123 // a chrome installation. They are (optionally) sent up to the uninstall
124 // survey in the event of uninstallation.
125 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
126 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
128 } // namespace prefs
129 } // namespace metrics