OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/metrics/metrics_pref_names.h" | 5 #include "components/metrics/metrics_pref_names.h" |
6 | 6 |
7 namespace metrics { | 7 namespace metrics { |
8 namespace prefs { | 8 namespace prefs { |
9 | 9 |
10 // The metrics client GUID. | 10 // The metrics client GUID. |
11 // Note: The name client_id2 is a result of creating | 11 // Note: The name client_id2 is a result of creating |
12 // new prefs to do a one-time reset of the previous values. | 12 // new prefs to do a one-time reset of the previous values. |
13 const char kMetricsClientID[] = "user_experience_metrics.client_id2"; | 13 const char kMetricsClientID[] = "user_experience_metrics.client_id2"; |
14 | 14 |
15 // Array of strings that are each UMA logs that were supposed to be sent in the | 15 // Array of strings that are each UMA logs that were supposed to be sent in the |
16 // first minute of a browser session. These logs include things like crash count | 16 // first minute of a browser session. These logs include things like crash count |
17 // info, etc. | 17 // info, etc. |
18 const char kMetricsInitialLogs[] = | 18 const char kMetricsInitialLogs[] = |
| 19 "user_experience_metrics.initial_logs_list"; |
| 20 const char kMetricsInitialLogsOld[] = |
19 "user_experience_metrics.initial_logs_as_protobufs"; | 21 "user_experience_metrics.initial_logs_as_protobufs"; |
20 | 22 |
21 // The metrics entropy source. | 23 // The metrics entropy source. |
22 // Note: The name low_entropy_source2 is a result of creating | 24 // Note: The name low_entropy_source2 is a result of creating |
23 // new prefs to do a one-time reset of the previous values. | 25 // new prefs to do a one-time reset of the previous values. |
24 const char kMetricsLowEntropySource[] = | 26 const char kMetricsLowEntropySource[] = |
25 "user_experience_metrics.low_entropy_source2"; | 27 "user_experience_metrics.low_entropy_source2"; |
26 | 28 |
27 // A machine ID used to detect when underlying hardware changes. It is only | 29 // A machine ID used to detect when underlying hardware changes. It is only |
28 // stored locally and never transmitted in metrics reports. | 30 // stored locally and never transmitted in metrics reports. |
29 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; | 31 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; |
30 | 32 |
31 // Old client id and low entropy source values, cleared the first time this | 33 // Old client id and low entropy source values, cleared the first time this |
32 // version is launched. | 34 // version is launched. |
33 // TODO(asvitkine): Delete these after a few releases have gone by and old | 35 // TODO(asvitkine): Delete these after a few releases have gone by and old |
34 // values have been cleaned up. http://crbug.com/357704 | 36 // values have been cleaned up. http://crbug.com/357704 |
35 const char kMetricsOldClientID[] = "user_experience_metrics.client_id"; | 37 const char kMetricsOldClientID[] = "user_experience_metrics.client_id"; |
36 const char kMetricsOldLowEntropySource[] = | 38 const char kMetricsOldLowEntropySource[] = |
37 "user_experience_metrics.low_entropy_source"; | 39 "user_experience_metrics.low_entropy_source"; |
38 | 40 |
39 // Array of strings that are each UMA logs that were not sent because the | 41 // Array of strings that are each UMA logs that were not sent because the |
40 // browser terminated before these accumulated metrics could be sent. These | 42 // browser terminated before these accumulated metrics could be sent. These |
41 // logs typically include histograms and memory reports, as well as ongoing | 43 // logs typically include histograms and memory reports, as well as ongoing |
42 // user activities. | 44 // user activities. |
43 const char kMetricsOngoingLogs[] = | 45 const char kMetricsOngoingLogs[] = |
| 46 "user_experience_metrics.ongoing_logs_list"; |
| 47 const char kMetricsOngoingLogsOld[] = |
44 "user_experience_metrics.ongoing_logs_as_protobufs"; | 48 "user_experience_metrics.ongoing_logs_as_protobufs"; |
45 | 49 |
46 // Boolean that indicates a cloned install has been detected and the metrics | 50 // Boolean that indicates a cloned install has been detected and the metrics |
47 // client id and low entropy source should be reset. | 51 // client id and low entropy source should be reset. |
48 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; | 52 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; |
49 | 53 |
50 // Date/time when the user opted in to UMA and generated the client id for the | 54 // Date/time when the user opted in to UMA and generated the client id for the |
51 // very first time (local machine time, stored as a 64-bit time_t value). | 55 // very first time (local machine time, stored as a 64-bit time_t value). |
52 const char kMetricsReportingEnabledTimestamp[] = | 56 const char kMetricsReportingEnabledTimestamp[] = |
53 "user_experience_metrics.client_id_timestamp"; | 57 "user_experience_metrics.client_id_timestamp"; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 "user_experience_metrics.stability.stats_version"; | 128 "user_experience_metrics.stability.stats_version"; |
125 | 129 |
126 // The keys below are strictly increasing counters over the lifetime of | 130 // The keys below are strictly increasing counters over the lifetime of |
127 // a chrome installation. They are (optionally) sent up to the uninstall | 131 // a chrome installation. They are (optionally) sent up to the uninstall |
128 // survey in the event of uninstallation. | 132 // survey in the event of uninstallation. |
129 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; | 133 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; |
130 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; | 134 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; |
131 | 135 |
132 } // namespace prefs | 136 } // namespace prefs |
133 } // namespace metrics | 137 } // namespace metrics |
OLD | NEW |