Chromium Code Reviews| 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 // 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 | |
| 12 // info, etc. | |
|
Alexei Svitkine (slow)
2016/09/30 20:30:31
Nit: add "Deprecated by kMetricsInitialLogs."
| |
| 13 const char kDeprecatedMetricsInitialLogs[] = | |
| 14 "user_experience_metrics.initial_logs_list"; | |
| 15 | |
| 16 // Array of strings that are each UMA logs that were not sent because the | |
| 17 // browser terminated before these accumulated metrics could be sent. These | |
| 18 // logs typically include histograms and memory reports, as well as ongoing | |
| 19 // user activities. | |
|
Alexei Svitkine (slow)
2016/09/30 20:30:31
Nit: add "Deprecated by kMetricsOngoingLogs."
| |
| 20 const char kDeprecatedMetricsOngoingLogs[] = | |
| 21 "user_experience_metrics.ongoing_logs_list"; | |
| 22 | |
| 10 // Set once, to the current epoch time, on the first run of chrome on this | 23 // Set once, to the current epoch time, on the first run of chrome on this |
| 11 // machine. Attached to metrics reports forever thereafter. | 24 // machine. Attached to metrics reports forever thereafter. |
| 12 const char kInstallDate[] = "uninstall_metrics.installation_date2"; | 25 const char kInstallDate[] = "uninstall_metrics.installation_date2"; |
| 13 | 26 |
| 14 // The metrics client GUID. | 27 // The metrics client GUID. |
| 15 // Note: The name client_id2 is a result of creating | 28 // Note: The name client_id2 is a result of creating |
| 16 // new prefs to do a one-time reset of the previous values. | 29 // new prefs to do a one-time reset of the previous values. |
| 17 const char kMetricsClientID[] = "user_experience_metrics.client_id2"; | 30 const char kMetricsClientID[] = "user_experience_metrics.client_id2"; |
| 18 | 31 |
| 19 // An enum value indicating the default value of the enable metrics reporting | 32 // An enum value indicating the default value of the enable metrics reporting |
| 20 // checkbox shown during first-run. If it's opt-in, then the checkbox defaulted | 33 // checkbox shown during first-run. If it's opt-in, then the checkbox defaulted |
| 21 // to unchecked, if it's opt-out, then it defaulted to checked. This value is | 34 // to unchecked, if it's opt-out, then it defaulted to checked. This value is |
| 22 // only recorded during first-run, so older clients will not set it. The enum | 35 // only recorded during first-run, so older clients will not set it. The enum |
| 23 // used for the value is metrics::MetricsServiceClient::EnableMetricsDefault. | 36 // used for the value is metrics::MetricsServiceClient::EnableMetricsDefault. |
| 24 const char kMetricsDefaultOptIn[] = "user_experience_metrics.default_opt_in"; | 37 const char kMetricsDefaultOptIn[] = "user_experience_metrics.default_opt_in"; |
| 25 | 38 |
| 26 // Array of strings that are each UMA logs that were supposed to be sent in the | 39 // Array of dictionaries that are each UMA logs that were supposed to be sent in |
| 27 // first minute of a browser session. These logs include things like crash count | 40 // the first minute of a browser session. These logs include things like crash |
| 28 // info, etc. | 41 // count info, etc. |
| 29 const char kMetricsInitialLogs[] = | 42 const char kMetricsInitialLogs[] = "user_experience_metrics.initial_logs2"; |
| 30 "user_experience_metrics.initial_logs_list"; | |
| 31 | 43 |
| 32 // The metrics entropy source. | 44 // The metrics entropy source. |
| 33 // Note: The name low_entropy_source2 is a result of creating | 45 // Note: The name low_entropy_source2 is a result of creating |
| 34 // new prefs to do a one-time reset of the previous values. | 46 // new prefs to do a one-time reset of the previous values. |
| 35 const char kMetricsLowEntropySource[] = | 47 const char kMetricsLowEntropySource[] = |
| 36 "user_experience_metrics.low_entropy_source2"; | 48 "user_experience_metrics.low_entropy_source2"; |
| 37 | 49 |
| 38 // A machine ID used to detect when underlying hardware changes. It is only | 50 // A machine ID used to detect when underlying hardware changes. It is only |
| 39 // stored locally and never transmitted in metrics reports. | 51 // stored locally and never transmitted in metrics reports. |
| 40 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; | 52 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; |
| 41 | 53 |
| 42 // Array of strings that are each UMA logs that were not sent because the | 54 // Array of dictionaries that are each UMA logs that were not sent because the |
| 43 // browser terminated before these accumulated metrics could be sent. These | 55 // browser terminated before these accumulated metrics could be sent. These |
| 44 // logs typically include histograms and memory reports, as well as ongoing | 56 // logs typically include histograms and memory reports, as well as ongoing |
| 45 // user activities. | 57 // user activities. |
| 46 const char kMetricsOngoingLogs[] = | 58 const char kMetricsOngoingLogs[] = "user_experience_metrics.ongoing_logs2"; |
| 47 "user_experience_metrics.ongoing_logs_list"; | |
| 48 | 59 |
| 49 // Boolean that indicates a cloned install has been detected and the metrics | 60 // Boolean that indicates a cloned install has been detected and the metrics |
| 50 // client id and low entropy source should be reset. | 61 // client id and low entropy source should be reset. |
| 51 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; | 62 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; |
| 52 | 63 |
| 53 // Boolean that specifies whether or not crash reporting and metrics reporting | 64 // Boolean that specifies whether or not crash reporting and metrics reporting |
| 54 // are sent over the network for analysis. | 65 // are sent over the network for analysis. |
| 55 const char kMetricsReportingEnabled[] = | 66 const char kMetricsReportingEnabled[] = |
| 56 "user_experience_metrics.reporting_enabled"; | 67 "user_experience_metrics.reporting_enabled"; |
| 57 | 68 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 204 // Dictionary for measuring cellular data used by UMA service during last 7 | 215 // Dictionary for measuring cellular data used by UMA service during last 7 |
| 205 // days. | 216 // days. |
| 206 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; | 217 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; |
| 207 | 218 |
| 208 // Dictionary for measuring cellular data used by user including chrome services | 219 // Dictionary for measuring cellular data used by user including chrome services |
| 209 // per day. | 220 // per day. |
| 210 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; | 221 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; |
| 211 | 222 |
| 212 } // namespace prefs | 223 } // namespace prefs |
| 213 } // namespace metrics | 224 } // namespace metrics |
| OLD | NEW |