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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java

Issue 67573003: Android: moves chrome/ to use long for JNI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java
index b910f8002d2ebeb304479016b9c04fde04de9366..7a1e872cc5eb2c0f477f0a0ecba77db4aba01a4e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java
@@ -17,7 +17,7 @@ import java.util.List;
* devices.
*/
public class ForeignSessionHelper {
- private int mNativeForeignSessionHelper;
+ private long mNativeForeignSessionHelper;
/**
* Callback interface for getting notified when foreign session sync is updated.
@@ -214,20 +214,20 @@ public class ForeignSessionHelper {
nativeDeleteForeignSession(mNativeForeignSessionHelper, session.tag);
}
- private static native int nativeInit(Profile profile);
- private static native void nativeDestroy(int nativeForeignSessionHelper);
- private static native boolean nativeIsTabSyncEnabled(int nativeForeignSessionHelper);
+ private static native long nativeInit(Profile profile);
+ private static native void nativeDestroy(long nativeForeignSessionHelper);
+ private static native boolean nativeIsTabSyncEnabled(long nativeForeignSessionHelper);
private static native void nativeSetOnForeignSessionCallback(
- int nativeForeignSessionHelper, ForeignSessionCallback callback);
- private static native boolean nativeGetForeignSessions(int nativeForeignSessionHelper,
+ long nativeForeignSessionHelper, ForeignSessionCallback callback);
+ private static native boolean nativeGetForeignSessions(long nativeForeignSessionHelper,
List<ForeignSession> resultSessions);
// TODO(apiccion): Remvoe this method once downstream CL Lands.
// See: http://crbug.com/257102
private static native boolean nativeOpenForeignSessionTabOld(
- int nativeForeignSessionHelper, String sessionTag, int tabId);
+ long nativeForeignSessionHelper, String sessionTag, int tabId);
private static native boolean nativeOpenForeignSessionTab(
- int nativeForeignSessionHelper, TabBase tab, String sessionTag, int tabId,
+ long nativeForeignSessionHelper, TabBase tab, String sessionTag, int tabId,
int disposition);
private static native void nativeDeleteForeignSession(
- int nativeForeignSessionHelper, String sessionTag);
+ long nativeForeignSessionHelper, String sessionTag);
}

Powered by Google App Engine
This is Rietveld 408576698