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

Unified Diff: chrome/browser/ui/android/navigation_popup.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/ui/android/navigation_popup.cc
diff --git a/chrome/browser/ui/android/navigation_popup.cc b/chrome/browser/ui/android/navigation_popup.cc
index fca009da75eedc821086e04c8a6bfc7b6e022a98..dd9dffd12cfaada1e600bd21d677f0fb93129b20 100644
--- a/chrome/browser/ui/android/navigation_popup.cc
+++ b/chrome/browser/ui/android/navigation_popup.cc
@@ -86,9 +86,9 @@ static jstring GetHistoryUrl(JNIEnv* env, jclass clazz) {
return ConvertUTF8ToJavaString(env, chrome::kChromeUIHistoryURL).Release();
}
-static jint Init(JNIEnv* env, jobject obj) {
+static jlong Init(JNIEnv* env, jobject obj) {
NavigationPopup* popup = new NavigationPopup(env, obj);
- return reinterpret_cast<jint>(popup);
+ return reinterpret_cast<intptr_t>(popup);
}
// static

Powered by Google App Engine
This is Rietveld 408576698