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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/NewTabPagePrefs.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/NewTabPagePrefs.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/NewTabPagePrefs.java b/chrome/android/java/src/org/chromium/chrome/browser/NewTabPagePrefs.java
index 93ab1268d875f35c5a1c55f10c560154308f4eb7..8457d3465058381f80f49be718726b5077ccefc3 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/NewTabPagePrefs.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/NewTabPagePrefs.java
@@ -11,7 +11,7 @@ import org.chromium.chrome.browser.profiles.Profile;
* This class allows Java code to read and modify preferences related to the NTP
*/
public class NewTabPagePrefs {
- private final int mNativeNewTabPagePrefs;
+ private final long mNativeNewTabPagePrefs;
/**
* Initialize this class with the given profile.
@@ -96,21 +96,21 @@ public class NewTabPagePrefs {
return nativeGetForeignSessionCollapsed(mNativeNewTabPagePrefs, session.tag);
}
- private static native int nativeInit(Profile profile);
- private static native void nativeDestroy(int nativeNewTabPagePrefs);
+ private static native long nativeInit(Profile profile);
+ private static native void nativeDestroy(long nativeNewTabPagePrefs);
private static native void nativeSetSnapshotDocumentCollapsed(
- int nativeNewTabPagePrefs, boolean isCollapsed);
+ long nativeNewTabPagePrefs, boolean isCollapsed);
private static native boolean nativeGetSnapshotDocumentCollapsed(
- int nativeNewTabPagePrefs);
+ long nativeNewTabPagePrefs);
private static native void nativeSetRecentlyClosedTabsCollapsed(
- int nativeNewTabPagePrefs, boolean isCollapsed);
+ long nativeNewTabPagePrefs, boolean isCollapsed);
private static native boolean nativeGetRecentlyClosedTabsCollapsed(
- int nativeNewTabPagePrefs);
- private static native void nativeSetSyncPromoCollapsed(int nativeNewTabPagePrefs,
+ long nativeNewTabPagePrefs);
+ private static native void nativeSetSyncPromoCollapsed(long nativeNewTabPagePrefs,
boolean isCollapsed);
- private static native boolean nativeGetSyncPromoCollapsed(int nativeNewTabPagePrefs);
+ private static native boolean nativeGetSyncPromoCollapsed(long nativeNewTabPagePrefs);
private static native void nativeSetForeignSessionCollapsed(
- int nativeNewTabPagePrefs, String sessionTag, boolean isCollapsed);
+ long nativeNewTabPagePrefs, String sessionTag, boolean isCollapsed);
private static native boolean nativeGetForeignSessionCollapsed(
- int nativeNewTabPagePrefs, String sessionTag);
+ long nativeNewTabPagePrefs, String sessionTag);
}

Powered by Google App Engine
This is Rietveld 408576698