Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(860)

Side by Side Diff: components/metrics/metrics_pref_names.cc

Issue 2358223002: Add log date to the metrics log (Closed)
Patch Set: Adding log date in persisted logs Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.
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.
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 strings that are each UMA logs that were supposed to be sent in the
27 // first minute of a browser session. These logs include things like crash count 40 // first minute of a browser session. These logs include things like crash count
28 // info, etc. 41 // info, etc.
Alexei Svitkine (slow) 2016/09/28 18:50:30 Update comment here and below.
gayane -on leave until 09-2017 2016/09/28 20:50:49 Done.
29 const char kMetricsInitialLogs[] = 42 const char kMetricsInitialLogs[] =
30 "user_experience_metrics.initial_logs_list"; 43 "user_experience_metrics.initial_logs_dict_list";
Alexei Svitkine (slow) 2016/09/28 18:50:30 I would just name it "initial_logs2" and "ongoing_
gayane -on leave until 09-2017 2016/09/28 20:50:49 Done.
31 44
32 // The metrics entropy source. 45 // The metrics entropy source.
33 // Note: The name low_entropy_source2 is a result of creating 46 // Note: The name low_entropy_source2 is a result of creating
34 // new prefs to do a one-time reset of the previous values. 47 // new prefs to do a one-time reset of the previous values.
35 const char kMetricsLowEntropySource[] = 48 const char kMetricsLowEntropySource[] =
36 "user_experience_metrics.low_entropy_source2"; 49 "user_experience_metrics.low_entropy_source2";
37 50
38 // A machine ID used to detect when underlying hardware changes. It is only 51 // A machine ID used to detect when underlying hardware changes. It is only
39 // stored locally and never transmitted in metrics reports. 52 // stored locally and never transmitted in metrics reports.
40 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; 53 const char kMetricsMachineId[] = "user_experience_metrics.machine_id";
41 54
42 // Array of strings that are each UMA logs that were not sent because the 55 // Array of strings that are each UMA logs that were not sent because the
43 // browser terminated before these accumulated metrics could be sent. These 56 // browser terminated before these accumulated metrics could be sent. These
44 // logs typically include histograms and memory reports, as well as ongoing 57 // logs typically include histograms and memory reports, as well as ongoing
45 // user activities. 58 // user activities.
46 const char kMetricsOngoingLogs[] = 59 const char kMetricsOngoingLogs[] =
47 "user_experience_metrics.ongoing_logs_list"; 60 "user_experience_metrics.ongoing_logs_dict_list";
48 61
49 // Boolean that indicates a cloned install has been detected and the metrics 62 // Boolean that indicates a cloned install has been detected and the metrics
50 // client id and low entropy source should be reset. 63 // client id and low entropy source should be reset.
51 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; 64 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids";
52 65
53 // Boolean that specifies whether or not crash reporting and metrics reporting 66 // Boolean that specifies whether or not crash reporting and metrics reporting
54 // are sent over the network for analysis. 67 // are sent over the network for analysis.
55 const char kMetricsReportingEnabled[] = 68 const char kMetricsReportingEnabled[] =
56 "user_experience_metrics.reporting_enabled"; 69 "user_experience_metrics.reporting_enabled";
57 70
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Dictionary for measuring cellular data used by UMA service during last 7 217 // Dictionary for measuring cellular data used by UMA service during last 7
205 // days. 218 // days.
206 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause"; 219 const char kUmaCellDataUse[] = "user_experience_metrics.uma_cell_datause";
207 220
208 // Dictionary for measuring cellular data used by user including chrome services 221 // Dictionary for measuring cellular data used by user including chrome services
209 // per day. 222 // per day.
210 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause"; 223 const char kUserCellDataUse[] = "user_experience_metrics.user_call_datause";
211 224
212 } // namespace prefs 225 } // namespace prefs
213 } // namespace metrics 226 } // namespace metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698