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

Unified Diff: chrome/browser/android/activity_type_id_list.h

Issue 137623002: Let MetricsService know about some Android Activities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: line warp fix Created 6 years, 11 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/browser/android/activity_type_id_list.h
diff --git a/chrome/browser/android/activity_type_id_list.h b/chrome/browser/android/activity_type_id_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..805e15e39154185cfdf971ec513f3d69274b922a
--- /dev/null
+++ b/chrome/browser/android/activity_type_id_list.h
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Intentionally no include guards because this file is meant to be included
+// inside a macro to generate enum values.
+
+// Define Activities we are interested in tracking. IDs are assigned
+// consecutively, from NONE to MAX_VALUE. Activities that are not explicitly
+// defined are all assigned the UNKNOWN value. When adding new ones, make sure
+// to append them after current Activities and to update the |AndroidActivityId|
+// enum in |histograms.xml|.
+DEFINE_ACTIVITY_ID(NONE, 0)
+DEFINE_ACTIVITY_ID(UNKNOWN, 1)
+DEFINE_ACTIVITY_ID(MAIN, 2)
+DEFINE_ACTIVITY_ID(PREFERENCES, 3)
+DEFINE_ACTIVITY_ID(WEBAPPACTIVITY, 4)
+DEFINE_ACTIVITY_ID(FULLSCREENACTIVITY, 5)
+DEFINE_ACTIVITY_ID(MAX_VALUE, 6)

Powered by Google App Engine
This is Rietveld 408576698