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

Unified Diff: content/browser/android/background_sync_network_observer_android.h

Issue 1489453003: jni: Pass method parameters as JavaParamRef in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: content/browser/android/background_sync_network_observer_android.h
diff --git a/content/browser/android/background_sync_network_observer_android.h b/content/browser/android/background_sync_network_observer_android.h
index 49e8b0ac9c8fb156daedea07d5dde3d8fe49f193..14c09f15ee71e8155bc61d3534a452cb4848a658 100644
--- a/content/browser/android/background_sync_network_observer_android.h
+++ b/content/browser/android/background_sync_network_observer_android.h
@@ -46,9 +46,10 @@ class BackgroundSyncNetworkObserverAndroid
// connection type changes. This updates the current connection type seen by
// this class and calls the |network_changed_callback| provided to the
// constructor, on the IO thread, with the new connection type.
- void NotifyConnectionTypeChanged(JNIEnv* env,
- jobject jcaller,
- jint new_connection_type);
+ void NotifyConnectionTypeChanged(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jcaller,
+ jint new_connection_type);
private:
friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>;

Powered by Google App Engine
This is Rietveld 408576698