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

Unified Diff: components/cronet/android/test/network_change_notifier_util.cc

Issue 1312153003: jni_generator: Pass object parameters as JavaParamRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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
Index: components/cronet/android/test/network_change_notifier_util.cc
diff --git a/components/cronet/android/test/network_change_notifier_util.cc b/components/cronet/android/test/network_change_notifier_util.cc
index 07f41d724859ee8b0dbc2f70a1f372b55cf70eb4..b6444aa11967b808b92c74d7ee5b8bfd670872ce 100644
--- a/components/cronet/android/test/network_change_notifier_util.cc
+++ b/components/cronet/android/test/network_change_notifier_util.cc
@@ -45,7 +45,9 @@ class TestIPAddressObserver
// Adds a TestIPAddressObserver to the list of IPAddressObservers, and returns
// a boolean indicating whether the TestIPAddressObserver has received
// notification when network changes.
-static jboolean IsTestIPAddressObserverCalled(JNIEnv* jenv, jclass jcaller) {
+static jboolean IsTestIPAddressObserverCalled(
+ JNIEnv* jenv,
+ const JavaParamRef<jclass>& jcaller) {
// This method is called on a Java thread with no MessageLoop, but we need
// one for the NetworkChangeNotifier to call the observer on.
base::MessageLoop loop;
« no previous file with comments | « components/cronet/android/test/native_test_server.cc ('k') | components/cronet/android/test/quic_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698