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

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

Issue 968943004: Move Android metrics files into a /metrics/ subfolder/package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « chrome/browser/android/uma_bridge.h ('k') | chrome/browser/android/uma_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/uma_bridge.cc
diff --git a/chrome/browser/android/uma_bridge.cc b/chrome/browser/android/uma_bridge.cc
deleted file mode 100644
index 2b27ee5d0c93097c08fdee5bd1c0a8925c8ad8e0..0000000000000000000000000000000000000000
--- a/chrome/browser/android/uma_bridge.cc
+++ /dev/null
@@ -1,91 +0,0 @@
-// 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/uma_bridge.h"
-
-#include <jni.h>
-
-#include "base/metrics/histogram.h"
-#include "content/public/browser/user_metrics.h"
-#include "jni/UmaBridge_jni.h"
-
-using base::UserMetricsAction;
-using content::RecordAction;
-using content::RecordComputedAction;
-
-static void RecordMenuShow(JNIEnv*, jclass) {
- RecordAction(UserMetricsAction("MobileMenuShow"));
-}
-
-static void RecordUsingMenu(JNIEnv*,
- jclass,
- jboolean is_by_hw_button,
- jboolean is_dragging) {
- if (is_by_hw_button) {
- if (is_dragging) {
- NOTREACHED() << "We do not support dragging for hardware menu button.";
- } else {
- RecordAction(UserMetricsAction("MobileUsingMenuByHwButtonTap"));
- }
- } else {
- if (is_dragging) {
- RecordAction(UserMetricsAction("MobileUsingMenuBySwButtonDragging"));
- } else {
- RecordAction(UserMetricsAction("MobileUsingMenuBySwButtonTap"));
- }
- }
-}
-
-// Android Beam
-
-static void RecordBeamCallbackSuccess(JNIEnv*, jclass) {
- RecordAction(UserMetricsAction("MobileBeamCallbackSuccess"));
-}
-
-static void RecordBeamInvalidAppState(JNIEnv*, jclass) {
- RecordAction(UserMetricsAction("MobileBeamInvalidAppState"));
-}
-
-// Data Saver
-
-static void RecordDataReductionProxyTurnedOn(JNIEnv*, jclass) {
- RecordAction(UserMetricsAction("DataReductionProxy_TurnedOn"));
-}
-
-static void RecordDataReductionProxyTurnedOff(JNIEnv*, jclass) {
- RecordAction(UserMetricsAction("DataReductionProxy_TurnedOff"));
-}
-
-static void RecordDataReductionProxyTurnedOnFromPromo(JNIEnv*, jclass) {
- RecordAction(UserMetricsAction("DataReductionProxy_TurnedOnFromPromo"));
-}
-
-static void RecordDataReductionProxyPromoAction(
- JNIEnv*, jclass, jint action, jint boundary) {
- UMA_HISTOGRAM_ENUMERATION("DataReductionProxy.PromoAction",
- action,
- boundary);
-}
-
-static void RecordDataReductionProxyPromoDisplayed(JNIEnv*, jclass) {
- RecordAction(UserMetricsAction("DataReductionProxy_PromoDisplayed"));
-}
-
-static void RecordDataReductionProxySettings(
- JNIEnv*, jclass, jint notification, jint boundary) {
- UMA_HISTOGRAM_ENUMERATION("DataReductionProxy.SettingsConversion",
- notification,
- boundary);
-}
-
-namespace chrome {
-namespace android {
-
-// Register native methods
-bool RegisterUmaBridge(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-} // namespace android
-} // namespace chrome
« no previous file with comments | « chrome/browser/android/uma_bridge.h ('k') | chrome/browser/android/uma_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698