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

Side by Side Diff: base/android/callback_android.cc

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( Created 4 years, 4 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 | « base/android/apk_assets.cc ('k') | base/android/content_uri_utils.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/callback_android.h" 5 #include "base/android/callback_android.h"
6 6
7 #include "jni/Callback_jni.h" 7 #include "jni/Callback_jni.h"
8 8
9 namespace base { 9 namespace base {
10 namespace android { 10 namespace android {
11 11
12 void RunCallbackAndroid(const JavaRef<jobject>& callback, 12 void RunCallbackAndroid(const JavaRef<jobject>& callback,
13 const JavaRef<jobject>& arg) { 13 const JavaRef<jobject>& arg) {
14 Java_Callback_onResultFromNativeV_JLO(base::android::AttachCurrentThread(), 14 Java_Callback_onResultFromNativeV_JLO(base::android::AttachCurrentThread(),
15 callback.obj(), 15 callback, arg);
16 arg.obj());
17 } 16 }
18 17
19 void RunCallbackAndroid(const JavaRef<jobject>& callback, bool arg) { 18 void RunCallbackAndroid(const JavaRef<jobject>& callback, bool arg) {
20 Java_Callback_onResultFromNativeV_Z(base::android::AttachCurrentThread(), 19 Java_Callback_onResultFromNativeV_Z(base::android::AttachCurrentThread(),
21 callback.obj(), 20 callback, static_cast<jboolean>(arg));
22 static_cast<jboolean>(arg));
23 } 21 }
24 22
25 void RunCallbackAndroid(const JavaRef<jobject>& callback, int arg) { 23 void RunCallbackAndroid(const JavaRef<jobject>& callback, int arg) {
26 Java_Callback_onResultFromNativeV_I(base::android::AttachCurrentThread(), 24 Java_Callback_onResultFromNativeV_I(base::android::AttachCurrentThread(),
27 callback.obj(), arg); 25 callback, arg);
28 } 26 }
29 27
30 } // namespace android 28 } // namespace android
31 } // namespace base 29 } // namespace base
OLDNEW
« no previous file with comments | « base/android/apk_assets.cc ('k') | base/android/content_uri_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698