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

Unified Diff: chrome/browser/android/new_tab_page_prefs.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/new_tab_page_prefs.cc
diff --git a/chrome/browser/android/new_tab_page_prefs.cc b/chrome/browser/android/new_tab_page_prefs.cc
index be2896117980a20d54c703747f447b8088282458..94a4e75f0381b380dac8f39b23daa2ebe374ab02 100644
--- a/chrome/browser/android/new_tab_page_prefs.cc
+++ b/chrome/browser/android/new_tab_page_prefs.cc
@@ -16,10 +16,10 @@
using base::android::ConvertJavaStringToUTF8;
-static jint Init(JNIEnv* env, jclass clazz, jobject profile) {
+static jlong Init(JNIEnv* env, jclass clazz, jobject profile) {
NewTabPagePrefs* new_tab_page_prefs =
new NewTabPagePrefs(ProfileAndroid::FromProfileAndroid(profile));
- return reinterpret_cast<jint>(new_tab_page_prefs);
+ return reinterpret_cast<intptr_t>(new_tab_page_prefs);
}
NewTabPagePrefs::NewTabPagePrefs(Profile* profile)
« no previous file with comments | « chrome/browser/android/foreign_session_helper.cc ('k') | chrome/browser/android/omnibox/omnibox_prerender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698