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

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: Rebase 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
« no previous file with comments | « chrome/common/pref_names.h ('k') | components/components_tests.gyp » ('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 (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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 const char kMetricsReportingEnabled[] = 1259 const char kMetricsReportingEnabled[] =
1260 "user_experience_metrics.reporting_enabled"; 1260 "user_experience_metrics.reporting_enabled";
1261 1261
1262 // Boolean that specifies whether or not crash reports are sent 1262 // Boolean that specifies whether or not crash reports are sent
1263 // over the network for analysis. 1263 // over the network for analysis.
1264 #if defined(OS_ANDROID) 1264 #if defined(OS_ANDROID)
1265 const char kCrashReportingEnabled[] = 1265 const char kCrashReportingEnabled[] =
1266 "user_experience_metrics_crash.reporting_enabled"; 1266 "user_experience_metrics_crash.reporting_enabled";
1267 #endif 1267 #endif
1268 1268
1269 // Number of times a page load event occurred since the last report.
1270 const char kStabilityPageLoadCount[] =
1271 "user_experience_metrics.stability.page_load_count";
1272
1273 // Number of times a renderer process crashed since the last report.
1274 const char kStabilityRendererCrashCount[] =
1275 "user_experience_metrics.stability.renderer_crash_count";
1276
1277 // Number of times a renderer process failed to launch since the last report.
1278 const char kStabilityRendererFailedLaunchCount[] =
1279 "user_experience_metrics.stability.renderer_failed_launch_count";
1280
1281 // Number of times an extension renderer process crashed since the last report.
1282 const char kStabilityExtensionRendererCrashCount[] =
1283 "user_experience_metrics.stability.extension_renderer_crash_count";
1284
1285 // Number of times an extension renderer process failed to launch since the last
1286 // report.
1287 const char kStabilityExtensionRendererFailedLaunchCount[] =
1288 "user_experience_metrics.stability.extension_renderer_failed_launch_count";
1289
1290 // This is the location of a list of dictionaries of plugin stability stats. 1269 // This is the location of a list of dictionaries of plugin stability stats.
1291 const char kStabilityPluginStats[] = 1270 const char kStabilityPluginStats[] =
1292 "user_experience_metrics.stability.plugin_stats2"; 1271 "user_experience_metrics.stability.plugin_stats2";
1293 1272
1294 // Number of times the renderer has become non-responsive since the last
1295 // report.
1296 const char kStabilityRendererHangCount[] =
1297 "user_experience_metrics.stability.renderer_hang_count";
1298
1299 // Total number of child process crashes (other than renderer / extension
1300 // renderer ones, and plugin children, which are counted separately) since the
1301 // last report.
1302 const char kStabilityChildProcessCrashCount[] =
1303 "user_experience_metrics.stability.child_process_crash_count";
1304
1305 // On Chrome OS, total number of non-Chrome user process crashes 1273 // On Chrome OS, total number of non-Chrome user process crashes
1306 // since the last report. 1274 // since the last report.
1307 const char kStabilityOtherUserCrashCount[] = 1275 const char kStabilityOtherUserCrashCount[] =
1308 "user_experience_metrics.stability.other_user_crash_count"; 1276 "user_experience_metrics.stability.other_user_crash_count";
1309 1277
1310 // On Chrome OS, total number of kernel crashes since the last report. 1278 // On Chrome OS, total number of kernel crashes since the last report.
1311 const char kStabilityKernelCrashCount[] = 1279 const char kStabilityKernelCrashCount[] =
1312 "user_experience_metrics.stability.kernel_crash_count"; 1280 "user_experience_metrics.stability.kernel_crash_count";
1313 1281
1314 // On Chrome OS, total number of unclean system shutdowns since the 1282 // On Chrome OS, total number of unclean system shutdowns since the
(...skipping 28 matching lines...) Expand all
1343 // kStabilityPluginStats list. 1311 // kStabilityPluginStats list.
1344 const char kStabilityPluginName[] = "name"; 1312 const char kStabilityPluginName[] = "name";
1345 const char kStabilityPluginLaunches[] = "launches"; 1313 const char kStabilityPluginLaunches[] = "launches";
1346 const char kStabilityPluginInstances[] = "instances"; 1314 const char kStabilityPluginInstances[] = "instances";
1347 const char kStabilityPluginCrashes[] = "crashes"; 1315 const char kStabilityPluginCrashes[] = "crashes";
1348 const char kStabilityPluginLoadingErrors[] = "loading_errors"; 1316 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1349 1317
1350 // The keys below are strictly increasing counters over the lifetime of 1318 // The keys below are strictly increasing counters over the lifetime of
1351 // a chrome installation. They are (optionally) sent up to the uninstall 1319 // a chrome installation. They are (optionally) sent up to the uninstall
1352 // survey in the event of uninstallation. 1320 // survey in the event of uninstallation.
1353 const char kUninstallMetricsPageLoadCount[] =
1354 "uninstall_metrics.page_load_count";
1355 const char kUninstallLastLaunchTimeSec[] = 1321 const char kUninstallLastLaunchTimeSec[] =
1356 "uninstall_metrics.last_launch_time_sec"; 1322 "uninstall_metrics.last_launch_time_sec";
1357 const char kUninstallLastObservedRunTimeSec[] = 1323 const char kUninstallLastObservedRunTimeSec[] =
1358 "uninstall_metrics.last_observed_running_time_sec"; 1324 "uninstall_metrics.last_observed_running_time_sec";
1359 1325
1360 // String containing the version of Chrome for which Chrome will not prompt the 1326 // String containing the version of Chrome for which Chrome will not prompt the
1361 // user about setting Chrome as the default browser. 1327 // user about setting Chrome as the default browser.
1362 const char kBrowserSuppressDefaultBrowserPrompt[] = 1328 const char kBrowserSuppressDefaultBrowserPrompt[] =
1363 "browser.suppress_default_browser_prompt_for_version"; 1329 "browser.suppress_default_browser_prompt_for_version";
1364 1330
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2233 "supervised_users.whitelists"; 2199 "supervised_users.whitelists";
2234 2200
2235 #if defined(ENABLE_EXTENSIONS) 2201 #if defined(ENABLE_EXTENSIONS)
2236 // Policy that indicates how to handle animated images. 2202 // Policy that indicates how to handle animated images.
2237 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; 2203 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2238 #endif 2204 #endif
2239 2205
2240 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; 2206 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2241 2207
2242 } // namespace prefs 2208 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698