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

Unified Diff: chrome/common/pref_names.cc

Issue 137623002: Let MetricsService know about some Android Activities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index dc7ee69fdf59d3e2f16def23e9374d606bcfd0db..baad88116500af2be4020c714b67d151ba183e5f 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -1505,6 +1505,29 @@ const char kStabilityKernelCrashCount[] =
const char kStabilitySystemUncleanShutdownCount[] =
"user_experience_metrics.stability.system_unclean_shutdowns";
+#if defined(OS_ANDROID)
+// Activity type that is currently in the foreground for the UMA session.
+// Uses the ActivityTypeIds::Type enum.
+const char kStabilityForegroundActivityType[] =
+ "user_experience_metrics.stability.current_foreground_activity_type";
+
+// Tracks which Activities were launched during the last session.
+// See |metrics_service_android.cc| for its usage.
+const char kStabilityLaunchedActivityFlags[] =
+ "user_experience_metrics.stability.launched_activity_flags";
+
+// List pref: Counts how many times each Activity was launched.
+// Indexed into by ActivityTypeIds::Type.
+const char kStabilityLaunchedActivityCounts[] =
+ "user_experience_metrics.stability.launched_activity_counts";
+
+// List pref: Counts how many times each Activity type was in the foreground
+// when a UMA session failed to be shut down properly.
+// Indexed into by ActivityTypeIds::Type.
+const char kStabilityCrashedActivityCounts[] =
+ "user_experience_metrics.stability.crashed_activity_counts";
+#endif
+
// Number of times the browser has been able to register crash reporting.
const char kStabilityBreakpadRegistrationSuccess[] =
"user_experience_metrics.stability.breakpad_registration_ok";

Powered by Google App Engine
This is Rietveld 408576698