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

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

Issue 558683002: Extract the handling of the clean exit beacon from MetricsService. The extracted implementation sup… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback. Created 6 years, 3 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 // 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 "user_experience_metrics.stability.debugger_present"; 76 "user_experience_metrics.stability.debugger_present";
77 77
78 // Number of times the browser has not been run under a debugger. 78 // Number of times the browser has not been run under a debugger.
79 const char kStabilityDebuggerNotPresent[] = 79 const char kStabilityDebuggerNotPresent[] =
80 "user_experience_metrics.stability.debugger_not_present"; 80 "user_experience_metrics.stability.debugger_not_present";
81 81
82 // An enum value to indicate the execution phase the browser was in. 82 // An enum value to indicate the execution phase the browser was in.
83 const char kStabilityExecutionPhase[] = 83 const char kStabilityExecutionPhase[] =
84 "user_experience_metrics.stability.execution_phase"; 84 "user_experience_metrics.stability.execution_phase";
85 85
86 // True if the previous run of the program exited cleanly.
87 const char kStabilityExitedCleanly[] =
88 "user_experience_metrics.stability.exited_cleanly";
89
90 // Number of times the session end did not complete. 86 // Number of times the session end did not complete.
91 const char kStabilityIncompleteSessionEndCount[] = 87 const char kStabilityIncompleteSessionEndCount[] =
92 "user_experience_metrics.stability.incomplete_session_end_count"; 88 "user_experience_metrics.stability.incomplete_session_end_count";
93 89
94 // Time when the app was last known to be running, in seconds since 90 // Time when the app was last known to be running, in seconds since
95 // the epoch. 91 // the epoch.
96 const char kStabilityLastTimestampSec[] = 92 const char kStabilityLastTimestampSec[] =
97 "user_experience_metrics.stability.last_timestamp_sec"; 93 "user_experience_metrics.stability.last_timestamp_sec";
98 94
99 // Number of times the application was launched since last report. 95 // Number of times the application was launched since last report.
(...skipping 28 matching lines...) Expand all
128 "user_experience_metrics.stability.stats_version"; 124 "user_experience_metrics.stability.stats_version";
129 125
130 // The keys below are strictly increasing counters over the lifetime of 126 // The keys below are strictly increasing counters over the lifetime of
131 // a chrome installation. They are (optionally) sent up to the uninstall 127 // a chrome installation. They are (optionally) sent up to the uninstall
132 // survey in the event of uninstallation. 128 // survey in the event of uninstallation.
133 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; 129 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
134 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; 130 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
135 131
136 } // namespace prefs 132 } // namespace prefs
137 } // namespace metrics 133 } // namespace metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698