| 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;
|
|
|