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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.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/infobar/InfoBarContainer.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
index 8855b65dc8447f1091735aa533f95f6b9f7e59c1..788e1a8f504f5323820595648081cf8f002ed6c7 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
@@ -67,7 +67,7 @@ public class InfoBarContainer extends LinearLayout {
private InfoBarAnimationListener mAnimationListener;
// Native InfoBarContainer pointer which will be set by nativeInit()
- private int mNativeInfoBarContainer;
+ private long mNativeInfoBarContainer;
private final Activity mActivity;
@@ -96,7 +96,7 @@ public class InfoBarContainer extends LinearLayout {
private ViewGroup mParentView;
public InfoBarContainer(Activity activity, AutoLoginProcessor autoLoginProcessor,
- int tabId, ViewGroup parentView, int nativeWebContents) {
+ int tabId, ViewGroup parentView, long nativeWebContents) {
super(activity);
setOrientation(LinearLayout.VERTICAL);
mAnimationListener = null;
@@ -512,11 +512,11 @@ public class InfoBarContainer extends LinearLayout {
return null;
}
- public int getNative() {
+ public long getNative() {
return mNativeInfoBarContainer;
}
- private native int nativeInit(int webContentsPtr, AutoLoginDelegate autoLoginDelegate);
+ private native long nativeInit(long webContentsPtr, AutoLoginDelegate autoLoginDelegate);
- private native void nativeDestroy(int nativeInfoBarContainerAndroid);
+ private native void nativeDestroy(long nativeInfoBarContainerAndroid);
}

Powered by Google App Engine
This is Rietveld 408576698