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, entropy source and session ID. | |
11 // Note: The names client_id2 and low_entropy_source2 are a result of creating | |
12 // new prefs to do a one-time reset of the previous values. | |
13 const char kMetricsClientID[] = "user_experience_metrics.client_id2"; | |
14 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
| |
15 const char kMetricsLowEntropySource[] = | |
16 "user_experience_metrics.low_entropy_source2"; | |
17 | |
18 // Old client id and low entropy source values, cleared the first time this | |
19 // version is launched. | |
20 // TODO(asvitkine): Delete these after a few releases have gone by and old | |
21 // values have been cleaned up. http://crbug.com/357704 | |
22 const char kMetricsOldClientID[] = "user_experience_metrics.client_id"; | |
23 const char kMetricsOldLowEntropySource[] = | |
24 "user_experience_metrics.low_entropy_source"; | |
25 | |
26 // Boolean that specifies whether or not crash reporting and metrics reporting | |
27 // are sent over the network for analysis. | |
28 const char kMetricsReportingEnabled[] = | |
29 "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.
| |
30 // Date/time when the user opted in to UMA and generated the client id for the | |
31 // very first time (local machine time, stored as a 64-bit time_t value). | |
32 const char kMetricsReportingEnabledTimestamp[] = | |
33 "user_experience_metrics.client_id_timestamp"; | |
34 | |
10 // Array of strings that are each UMA logs that were supposed to be sent in the | 35 // Array of strings that are each UMA logs that were supposed to be sent in the |
11 // first minute of a browser session. These logs include things like crash count | 36 // first minute of a browser session. These logs include things like crash count |
12 // info, etc. | 37 // info, etc. |
13 const char kMetricsInitialLogs[] = | 38 const char kMetricsInitialLogs[] = |
14 "user_experience_metrics.initial_logs_as_protobufs"; | 39 "user_experience_metrics.initial_logs_as_protobufs"; |
15 | 40 |
16 // A machine ID used to detect when underlying hardware changes. It is only | 41 // A machine ID used to detect when underlying hardware changes. It is only |
17 // stored locally and never transmitted in metrics reports. | 42 // stored locally and never transmitted in metrics reports. |
18 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; | 43 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; |
19 | 44 |
20 // Array of strings that are each UMA logs that were not sent because the | 45 // Array of strings that are each UMA logs that were not sent because the |
21 // browser terminated before these accumulated metrics could be sent. These | 46 // browser terminated before these accumulated metrics could be sent. These |
22 // logs typically include histograms and memory reports, as well as ongoing | 47 // logs typically include histograms and memory reports, as well as ongoing |
23 // user activities. | 48 // user activities. |
24 const char kMetricsOngoingLogs[] = | 49 const char kMetricsOngoingLogs[] = |
25 "user_experience_metrics.ongoing_logs_as_protobufs"; | 50 "user_experience_metrics.ongoing_logs_as_protobufs"; |
26 | 51 |
27 // Boolean that indicates a cloned install has been detected and the metrics | 52 // Boolean that indicates a cloned install has been detected and the metrics |
28 // client id and low entropy source should be reset. | 53 // client id and low entropy source should be reset. |
29 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; | 54 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; |
30 | 55 |
31 } // namespace prefs | 56 } // namespace prefs |
32 } // namespace metrics | 57 } // namespace metrics |
OLD | NEW |