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

Side by Side Diff: chrome/common/pref_names.cc

Issue 1366643002: Extract guts of ChromeStabilityMetricsProvider into helper class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/common/pref_font_webkit_names.h" 8 #include "chrome/common/pref_font_webkit_names.h"
9 9
10 namespace prefs { 10 namespace prefs {
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 const char kMetricsReportingEnabled[] = 1260 const char kMetricsReportingEnabled[] =
1261 "user_experience_metrics.reporting_enabled"; 1261 "user_experience_metrics.reporting_enabled";
1262 1262
1263 // Boolean that specifies whether or not crash reports are sent 1263 // Boolean that specifies whether or not crash reports are sent
1264 // over the network for analysis. 1264 // over the network for analysis.
1265 #if defined(OS_ANDROID) 1265 #if defined(OS_ANDROID)
1266 const char kCrashReportingEnabled[] = 1266 const char kCrashReportingEnabled[] =
1267 "user_experience_metrics_crash.reporting_enabled"; 1267 "user_experience_metrics_crash.reporting_enabled";
1268 #endif 1268 #endif
1269 1269
1270 // Number of times a page load event occurred since the last report.
1271 const char kStabilityPageLoadCount[] =
1272 "user_experience_metrics.stability.page_load_count";
1273
1274 // Number of times a renderer process crashed since the last report.
1275 const char kStabilityRendererCrashCount[] =
1276 "user_experience_metrics.stability.renderer_crash_count";
1277
1278 // Number of times a renderer process failed to launch since the last report.
1279 const char kStabilityRendererFailedLaunchCount[] =
1280 "user_experience_metrics.stability.renderer_failed_launch_count";
1281
1282 // Number of times an extension renderer process crashed since the last report.
1283 const char kStabilityExtensionRendererCrashCount[] =
1284 "user_experience_metrics.stability.extension_renderer_crash_count";
1285
1286 // Number of times an extension renderer process failed to launch since the last
1287 // report.
1288 const char kStabilityExtensionRendererFailedLaunchCount[] =
1289 "user_experience_metrics.stability.extension_renderer_failed_launch_count";
1290
1291 // This is the location of a list of dictionaries of plugin stability stats. 1270 // This is the location of a list of dictionaries of plugin stability stats.
1292 const char kStabilityPluginStats[] = 1271 const char kStabilityPluginStats[] =
1293 "user_experience_metrics.stability.plugin_stats2"; 1272 "user_experience_metrics.stability.plugin_stats2";
1294 1273
1295 // Number of times the renderer has become non-responsive since the last
1296 // report.
1297 const char kStabilityRendererHangCount[] =
1298 "user_experience_metrics.stability.renderer_hang_count";
1299
1300 // Total number of child process crashes (other than renderer / extension
1301 // renderer ones, and plugin children, which are counted separately) since the
1302 // last report.
1303 const char kStabilityChildProcessCrashCount[] =
1304 "user_experience_metrics.stability.child_process_crash_count";
1305
1306 // On Chrome OS, total number of non-Chrome user process crashes 1274 // On Chrome OS, total number of non-Chrome user process crashes
1307 // since the last report. 1275 // since the last report.
1308 const char kStabilityOtherUserCrashCount[] = 1276 const char kStabilityOtherUserCrashCount[] =
1309 "user_experience_metrics.stability.other_user_crash_count"; 1277 "user_experience_metrics.stability.other_user_crash_count";
1310 1278
1311 // On Chrome OS, total number of kernel crashes since the last report. 1279 // On Chrome OS, total number of kernel crashes since the last report.
1312 const char kStabilityKernelCrashCount[] = 1280 const char kStabilityKernelCrashCount[] =
1313 "user_experience_metrics.stability.kernel_crash_count"; 1281 "user_experience_metrics.stability.kernel_crash_count";
1314 1282
1315 // On Chrome OS, total number of unclean system shutdowns since the 1283 // On Chrome OS, total number of unclean system shutdowns since the
(...skipping 28 matching lines...) Expand all
1344 // kStabilityPluginStats list. 1312 // kStabilityPluginStats list.
1345 const char kStabilityPluginName[] = "name"; 1313 const char kStabilityPluginName[] = "name";
1346 const char kStabilityPluginLaunches[] = "launches"; 1314 const char kStabilityPluginLaunches[] = "launches";
1347 const char kStabilityPluginInstances[] = "instances"; 1315 const char kStabilityPluginInstances[] = "instances";
1348 const char kStabilityPluginCrashes[] = "crashes"; 1316 const char kStabilityPluginCrashes[] = "crashes";
1349 const char kStabilityPluginLoadingErrors[] = "loading_errors"; 1317 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1350 1318
1351 // The keys below are strictly increasing counters over the lifetime of 1319 // The keys below are strictly increasing counters over the lifetime of
1352 // a chrome installation. They are (optionally) sent up to the uninstall 1320 // a chrome installation. They are (optionally) sent up to the uninstall
1353 // survey in the event of uninstallation. 1321 // survey in the event of uninstallation.
1354 const char kUninstallMetricsPageLoadCount[] =
1355 "uninstall_metrics.page_load_count";
1356 const char kUninstallLastLaunchTimeSec[] = 1322 const char kUninstallLastLaunchTimeSec[] =
1357 "uninstall_metrics.last_launch_time_sec"; 1323 "uninstall_metrics.last_launch_time_sec";
1358 const char kUninstallLastObservedRunTimeSec[] = 1324 const char kUninstallLastObservedRunTimeSec[] =
1359 "uninstall_metrics.last_observed_running_time_sec"; 1325 "uninstall_metrics.last_observed_running_time_sec";
1360 1326
1361 // String containing the version of Chrome for which Chrome will not prompt the 1327 // String containing the version of Chrome for which Chrome will not prompt the
1362 // user about setting Chrome as the default browser. 1328 // user about setting Chrome as the default browser.
1363 const char kBrowserSuppressDefaultBrowserPrompt[] = 1329 const char kBrowserSuppressDefaultBrowserPrompt[] =
1364 "browser.suppress_default_browser_prompt_for_version"; 1330 "browser.suppress_default_browser_prompt_for_version";
1365 1331
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2230 "supervised_users.whitelists"; 2196 "supervised_users.whitelists";
2231 2197
2232 #if defined(ENABLE_EXTENSIONS) 2198 #if defined(ENABLE_EXTENSIONS)
2233 // Policy that indicates how to handle animated images. 2199 // Policy that indicates how to handle animated images.
2234 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2200 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2235 #endif 2201 #endif
2236 2202
2237 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; 2203 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2238 2204
2239 } // namespace prefs 2205 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698