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

Unified Diff: chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.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/infobars/auto_login_infobar_delegate_android.cc
diff --git a/chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.cc b/chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.cc
index 82a9fc87fa1d3b578fe35dbd0a719c739ac86431..47b9695e66f89a22395316ac26a67d0e93d7fcd8 100644
--- a/chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.cc
+++ b/chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.cc
@@ -46,7 +46,7 @@ bool AutoLoginInfoBarDelegateAndroid::AttachAccount(
DCHECK(delegate.obj());
user_ = base::android::ConvertJavaStringToUTF8(
Java_AutoLoginDelegate_initializeAccount(
- env, delegate.obj(), reinterpret_cast<jint>(this), jrealm.obj(),
+ env, delegate.obj(), reinterpret_cast<intptr_t>(this), jrealm.obj(),
jaccount.obj(), jargs.obj()));
return !user_.empty();
}
@@ -63,7 +63,7 @@ bool AutoLoginInfoBarDelegateAndroid::Accept() {
DCHECK(delegate.obj());
Java_AutoLoginDelegate_logIn(env, delegate.obj(),
- reinterpret_cast<jint>(this));
+ reinterpret_cast<intptr_t>(this));
// Do not close the infobar on accept, it will be closed as part
// of the log in callback.
@@ -76,7 +76,7 @@ bool AutoLoginInfoBarDelegateAndroid::Cancel() {
weak_java_auto_login_delegate_.get(env);
DCHECK(delegate.obj());
Java_AutoLoginDelegate_cancelLogIn(env, delegate.obj(),
- reinterpret_cast<jint>(this));
+ reinterpret_cast<intptr_t>(this));
return true;
}
« no previous file with comments | « chrome/browser/ui/android/chrome_http_auth_handler.cc ('k') | chrome/browser/ui/android/infobars/confirm_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698