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

Unified Diff: chrome/browser/android/foreign_session_helper.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
« no previous file with comments | « chrome/browser/android/favicon_helper.cc ('k') | chrome/browser/android/new_tab_page_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/foreign_session_helper.cc
diff --git a/chrome/browser/android/foreign_session_helper.cc b/chrome/browser/android/foreign_session_helper.cc
index 58a46759c461a3bd14e4c85c498af3c61311e520..4fccf57870073e1ae0cda23772174c1e275dbdd4 100644
--- a/chrome/browser/android/foreign_session_helper.cc
+++ b/chrome/browser/android/foreign_session_helper.cc
@@ -137,10 +137,10 @@ void CopyWindowsToJava(
} // namespace
-static jint Init(JNIEnv* env, jclass clazz, jobject profile) {
+static jlong Init(JNIEnv* env, jclass clazz, jobject profile) {
ForeignSessionHelper* foreign_session_helper = new ForeignSessionHelper(
ProfileAndroid::FromProfileAndroid(profile));
- return reinterpret_cast<jint>(foreign_session_helper);
+ return reinterpret_cast<intptr_t>(foreign_session_helper);
}
ForeignSessionHelper::ForeignSessionHelper(Profile* profile)
« no previous file with comments | « chrome/browser/android/favicon_helper.cc ('k') | chrome/browser/android/new_tab_page_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698