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

Unified Diff: chrome/browser/android/content_view_util.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/content_view_util.cc
diff --git a/chrome/browser/android/content_view_util.cc b/chrome/browser/android/content_view_util.cc
index 2acdb1ef85773905b11f0ed35ea9064cad3e018c..95ab74391c22559ec0f5d7264aae29397f0f5b5a 100644
--- a/chrome/browser/android/content_view_util.cc
+++ b/chrome/browser/android/content_view_util.cc
@@ -11,7 +11,7 @@
#include "content/public/browser/web_contents.h"
#include "jni/ContentViewUtil_jni.h"
-static jint CreateNativeWebContents(
+static jlong CreateNativeWebContents(
JNIEnv* env, jclass clazz, jboolean incognito) {
Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile();
if (incognito)
@@ -19,11 +19,11 @@ static jint CreateNativeWebContents(
content::WebContents* web_contents =
content::WebContents::Create(content::WebContents::CreateParams(profile));
- return reinterpret_cast<jint>(web_contents);
+ return reinterpret_cast<intptr_t>(web_contents);
}
static void DestroyNativeWebContents(
- JNIEnv* env, jclass clazz, jint web_contents_ptr) {
+ JNIEnv* env, jclass clazz, jlong web_contents_ptr) {
content::WebContents* web_contents =
reinterpret_cast<content::WebContents*>(web_contents_ptr);
delete web_contents;
« no previous file with comments | « chrome/browser/android/chrome_web_contents_delegate_android.cc ('k') | chrome/browser/android/favicon_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698