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

Unified Diff: chrome/browser/android/tab_android.cc

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/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 3c0c45072a573d8465d97a878f00facd646279ed..e87f436f27ecd8cbe878e478b675bc4158d56275 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -146,7 +146,7 @@ TabAndroid::TabAndroid(JNIEnv* env, jobject obj)
: weak_java_tab_(env, obj),
session_tab_id_(),
synced_tab_delegate_(new browser_sync::SyncedTabDelegateAndroid(this)) {
- Java_TabBase_setNativePtr(env, obj, reinterpret_cast<jint>(this));
+ Java_TabBase_setNativePtr(env, obj, reinterpret_cast<intptr_t>(this));
}
TabAndroid::~TabAndroid() {
@@ -244,7 +244,7 @@ void TabAndroid::SwapTabContents(content::WebContents* old_contents,
Java_TabBase_swapWebContents(
env,
weak_java_tab_.get(env).obj(),
- reinterpret_cast<jint>(new_contents));
+ reinterpret_cast<intptr_t>(new_contents));
}
void TabAndroid::Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698