| 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 // Set once, to the current epoch time, on the first run of chrome on this | 10 // Set once, to the current epoch time, on the first run of chrome on this |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // The metrics entropy source. | 25 // The metrics entropy source. |
| 26 // Note: The name low_entropy_source2 is a result of creating | 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. | 27 // new prefs to do a one-time reset of the previous values. |
| 28 const char kMetricsLowEntropySource[] = | 28 const char kMetricsLowEntropySource[] = |
| 29 "user_experience_metrics.low_entropy_source2"; | 29 "user_experience_metrics.low_entropy_source2"; |
| 30 | 30 |
| 31 // A machine ID used to detect when underlying hardware changes. It is only | 31 // A machine ID used to detect when underlying hardware changes. It is only |
| 32 // stored locally and never transmitted in metrics reports. | 32 // stored locally and never transmitted in metrics reports. |
| 33 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; | 33 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; |
| 34 | 34 |
| 35 // Old client id and low entropy source values, cleared the first time this | |
| 36 // version is launched. | |
| 37 // TODO(asvitkine): Delete these after a few releases have gone by and old | |
| 38 // values have been cleaned up. http://crbug.com/357704 | |
| 39 const char kMetricsOldClientID[] = "user_experience_metrics.client_id"; | |
| 40 const char kMetricsOldLowEntropySource[] = | |
| 41 "user_experience_metrics.low_entropy_source"; | |
| 42 | |
| 43 // Array of strings that are each UMA logs that were not sent because the | 35 // Array of strings that are each UMA logs that were not sent because the |
| 44 // browser terminated before these accumulated metrics could be sent. These | 36 // browser terminated before these accumulated metrics could be sent. These |
| 45 // logs typically include histograms and memory reports, as well as ongoing | 37 // logs typically include histograms and memory reports, as well as ongoing |
| 46 // user activities. | 38 // user activities. |
| 47 const char kMetricsOngoingLogs[] = | 39 const char kMetricsOngoingLogs[] = |
| 48 "user_experience_metrics.ongoing_logs_list"; | 40 "user_experience_metrics.ongoing_logs_list"; |
| 49 | 41 |
| 50 // Boolean that indicates a cloned install has been detected and the metrics | 42 // Boolean that indicates a cloned install has been detected and the metrics |
| 51 // client id and low entropy source should be reset. | 43 // client id and low entropy source should be reset. |
| 52 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; | 44 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 "user_experience_metrics.stability.stats_version"; | 120 "user_experience_metrics.stability.stats_version"; |
| 129 | 121 |
| 130 // The keys below are strictly increasing counters over the lifetime of | 122 // The keys below are strictly increasing counters over the lifetime of |
| 131 // a chrome installation. They are (optionally) sent up to the uninstall | 123 // a chrome installation. They are (optionally) sent up to the uninstall |
| 132 // survey in the event of uninstallation. | 124 // survey in the event of uninstallation. |
| 133 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; | 125 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; |
| 134 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; | 126 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; |
| 135 | 127 |
| 136 } // namespace prefs | 128 } // namespace prefs |
| 137 } // namespace metrics | 129 } // namespace metrics |
| OLD | NEW |