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

Unified Diff: chrome/browser/android/activity_type_ids.cc

Issue 103943006: Let MetricsService know about some Android Activities (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding more activities, addressing comments Created 7 years 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_ids.cc
diff --git a/chrome/browser/android/activity_type_ids.cc b/chrome/browser/android/activity_type_ids.cc
new file mode 100644
index 0000000000000000000000000000000000000000..204ee8f810a70b30831c25f4bae476de038b0029
--- /dev/null
+++ b/chrome/browser/android/activity_type_ids.cc
@@ -0,0 +1,20 @@
+// Copyright 2013 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.
+
+#include "chrome/browser/android/activity_type_ids.h"
+
+#include "base/logging.h"
+
+namespace ActivityTypeIds {
+
+// static
Alexei Svitkine (slow) 2014/01/09 20:20:12 Remove this, since this isn't a static function in
Kibeom Kim (inactive) 2014/01/16 00:18:16 Done.
+Type GetActivityType(int type_id) {
+ if (type_id >= ACTIVITY_NONE && type_id <= ACTIVITY_MAX_VALUE)
+ return Type(type_id);
+
+ NOTREACHED() << "Unhandled Activity id was passed in: " << type_id;
+ return ACTIVITY_MAX_VALUE;
+}
+
+} // namespace ActivityTypeIds

Powered by Google App Engine
This is Rietveld 408576698