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

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

Issue 312583002: Move MetricsStateManager into the Metrics component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « components/metrics/metrics_pref_names.h ('k') | components/metrics/metrics_state_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // The metrics client GUID.
11 // Note: The name client_id2 is 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
10 // 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
11 // 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
12 // info, etc. 17 // info, etc.
13 const char kMetricsInitialLogs[] = 18 const char kMetricsInitialLogs[] =
14 "user_experience_metrics.initial_logs_as_protobufs"; 19 "user_experience_metrics.initial_logs_as_protobufs";
15 20
21 // The metrics entropy source.
22 // Note: The name low_entropy_source2 is a result of creating
23 // new prefs to do a one-time reset of the previous values.
24 const char kMetricsLowEntropySource[] =
25 "user_experience_metrics.low_entropy_source2";
26
16 // A machine ID used to detect when underlying hardware changes. It is only 27 // A machine ID used to detect when underlying hardware changes. It is only
17 // stored locally and never transmitted in metrics reports. 28 // stored locally and never transmitted in metrics reports.
18 const char kMetricsMachineId[] = "user_experience_metrics.machine_id"; 29 const char kMetricsMachineId[] = "user_experience_metrics.machine_id";
19 30
31 // Old client id and low entropy source values, cleared the first time this
32 // version is launched.
33 // TODO(asvitkine): Delete these after a few releases have gone by and old
34 // values have been cleaned up. http://crbug.com/357704
35 const char kMetricsOldClientID[] = "user_experience_metrics.client_id";
36 const char kMetricsOldLowEntropySource[] =
37 "user_experience_metrics.low_entropy_source";
38
20 // Array of strings that are each UMA logs that were not sent because the 39 // 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 40 // browser terminated before these accumulated metrics could be sent. These
22 // logs typically include histograms and memory reports, as well as ongoing 41 // logs typically include histograms and memory reports, as well as ongoing
23 // user activities. 42 // user activities.
24 const char kMetricsOngoingLogs[] = 43 const char kMetricsOngoingLogs[] =
25 "user_experience_metrics.ongoing_logs_as_protobufs"; 44 "user_experience_metrics.ongoing_logs_as_protobufs";
26 45
27 // Boolean that indicates a cloned install has been detected and the metrics 46 // Boolean that indicates a cloned install has been detected and the metrics
28 // client id and low entropy source should be reset. 47 // client id and low entropy source should be reset.
29 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids"; 48 const char kMetricsResetIds[] = "user_experience_metrics.reset_metrics_ids";
30 49
50 // 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).
52 const char kMetricsReportingEnabledTimestamp[] =
53 "user_experience_metrics.client_id_timestamp";
54
55 // The metrics client session ID.
56 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
57
31 } // namespace prefs 58 } // namespace prefs
32 } // namespace metrics 59 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/metrics_pref_names.h ('k') | components/metrics/metrics_state_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698