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

Unified Diff: chrome/browser/signin/android_profile_oauth2_token_service.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/search_engines/template_url_service_android.cc ('k') | chrome/browser/speech/tts_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/android_profile_oauth2_token_service.cc
diff --git a/chrome/browser/signin/android_profile_oauth2_token_service.cc b/chrome/browser/signin/android_profile_oauth2_token_service.cc
index 60d378d5fa6deeecdb72e5778147f4799f5fd72f..ae4471473b8d9ada9ce94343df53bb6c122bdbf3 100644
--- a/chrome/browser/signin/android_profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/android_profile_oauth2_token_service.cc
@@ -53,7 +53,7 @@ typedef base::Callback<void(
AndroidProfileOAuth2TokenService::AndroidProfileOAuth2TokenService() {
JNIEnv* env = AttachCurrentThread();
base::android::ScopedJavaLocalRef<jobject> local_java_ref =
- Java_OAuth2TokenService_create(env, reinterpret_cast<int>(this));
+ Java_OAuth2TokenService_create(env, reinterpret_cast<intptr_t>(this));
java_ref_.Reset(env, local_java_ref.obj());
}
@@ -129,7 +129,7 @@ void AndroidProfileOAuth2TokenService::FetchOAuth2Token(
env, base::android::GetApplicationContext(),
j_username.obj(),
j_scope.obj(),
- reinterpret_cast<int>(heap_callback.release()));
+ reinterpret_cast<intptr_t>(heap_callback.release()));
}
void AndroidProfileOAuth2TokenService::InvalidateOAuth2Token(
@@ -235,7 +235,7 @@ void AndroidProfileOAuth2TokenService::FireRefreshTokensLoaded() {
void OAuth2TokenFetched(JNIEnv* env, jclass clazz,
jstring authToken,
jboolean result,
- jint nativeCallback) {
+ jlong nativeCallback) {
std::string token = ConvertJavaStringToUTF8(env, authToken);
scoped_ptr<FetchOAuth2TokenCallback> heap_callback(
reinterpret_cast<FetchOAuth2TokenCallback*>(nativeCallback));
« no previous file with comments | « chrome/browser/search_engines/template_url_service_android.cc ('k') | chrome/browser/speech/tts_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698