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

Side by Side Diff: android/record_user_action.cc

Issue 2050803003: Update to Chromium //base at Chromium commit e3a753f17bac62738b0dbf0b36510f767b081e4b. (Closed) Base URL: https://github.com/domokit/base.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « android/record_histogram.cc ('k') | android/scoped_java_ref.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/android/record_user_action.h" 5 #include "base/android/record_user_action.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "jni/RecordUserAction_jni.h" 9 #include "jni/RecordUserAction_jni.h"
10 10
11 namespace base { 11 namespace base {
12 namespace android { 12 namespace android {
13 13
14 static void RecordUserAction(JNIEnv* env, jclass clazz, jstring j_action) { 14 static void RecordUserAction(JNIEnv* env,
15 const JavaParamRef<jclass>& clazz,
16 const JavaParamRef<jstring>& j_action) {
15 RecordComputedAction(ConvertJavaStringToUTF8(env, j_action)); 17 RecordComputedAction(ConvertJavaStringToUTF8(env, j_action));
16 } 18 }
17 19
18 // Register native methods 20 // Register native methods
19 bool RegisterRecordUserAction(JNIEnv* env) { 21 bool RegisterRecordUserAction(JNIEnv* env) {
20 return RegisterNativesImpl(env); 22 return RegisterNativesImpl(env);
21 } 23 }
22 24
23 } // namespace android 25 } // namespace android
24 } // namespace base 26 } // namespace base
OLDNEW
« no previous file with comments | « android/record_histogram.cc ('k') | android/scoped_java_ref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698