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

Unified Diff: content/browser/android/interstitial_page_delegate_android.cc

Issue 59673007: Android: moves content/ 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: content/browser/android/interstitial_page_delegate_android.cc
diff --git a/content/browser/android/interstitial_page_delegate_android.cc b/content/browser/android/interstitial_page_delegate_android.cc
index 4ed48907bed7ba469a5ac4e6f7170d3368a2ac32..f598cd36a5c6dfee342ddbad2632f2394343366f 100644
--- a/content/browser/android/interstitial_page_delegate_android.cc
+++ b/content/browser/android/interstitial_page_delegate_android.cc
@@ -84,11 +84,11 @@ bool InterstitialPageDelegateAndroid
return RegisterNativesImpl(env);
}
-static jint Init(JNIEnv* env, jobject obj, jstring html_content) {
+static jlong Init(JNIEnv* env, jobject obj, jstring html_content) {
InterstitialPageDelegateAndroid* delegate =
new InterstitialPageDelegateAndroid(
env, obj, base::android::ConvertJavaStringToUTF8(env, html_content));
- return reinterpret_cast<jint>(delegate);
+ return reinterpret_cast<intptr_t>(delegate);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698