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

Side by Side Diff: chrome/browser/android/uma_bridge.cc

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix android webview build issues. Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/android/uma_bridge.h"
6
7 #include <jni.h> 5 #include <jni.h>
8 6
9 #include "content/public/browser/user_metrics.h" 7 #include "content/public/browser/user_metrics.h"
10 #include "jni/UmaBridge_jni.h" 8 #include "jni/UmaBridge_jni.h"
11 9
12 using base::UserMetricsAction; 10 using base::UserMetricsAction;
13 using content::RecordAction; 11 using content::RecordAction;
14 using content::RecordComputedAction; 12 using content::RecordComputedAction;
15 13
16 static void RecordMenuShow(JNIEnv*, jclass) { 14 static void RecordMenuShow(JNIEnv*, jclass) {
(...skipping 11 matching lines...) Expand all
28 RecordAction(UserMetricsAction("MobileUsingMenuByHwButtonTap")); 26 RecordAction(UserMetricsAction("MobileUsingMenuByHwButtonTap"));
29 } 27 }
30 } else { 28 } else {
31 if (is_dragging) { 29 if (is_dragging) {
32 RecordAction(UserMetricsAction("MobileUsingMenuBySwButtonDragging")); 30 RecordAction(UserMetricsAction("MobileUsingMenuBySwButtonDragging"));
33 } else { 31 } else {
34 RecordAction(UserMetricsAction("MobileUsingMenuBySwButtonTap")); 32 RecordAction(UserMetricsAction("MobileUsingMenuBySwButtonTap"));
35 } 33 }
36 } 34 }
37 } 35 }
38
39 namespace chrome {
40 namespace android {
41
42 // Register native methods
43 bool RegisterUmaBridge(JNIEnv* env) {
44 return RegisterNativesImpl(env);
45 }
46
47 } // namespace android
48 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698