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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeHttpAuthHandler.java

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/android/java/src/org/chromium/chrome/browser/ChromeHttpAuthHandler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeHttpAuthHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeHttpAuthHandler.java
index 7fade26ec21d025e42d121c040e95f7763151a2d..38b6cc51192e62c35a499df60d5078d9bb706695 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeHttpAuthHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeHttpAuthHandler.java
@@ -16,18 +16,18 @@ import org.chromium.base.CalledByNative;
* constructor.
*/
public class ChromeHttpAuthHandler {
- private final int mNativeChromeHttpAuthHandler;
+ private final long mNativeChromeHttpAuthHandler;
private AutofillObserver mAutofillObserver;
private String mAutofillUsername;
private String mAutofillPassword;
- private ChromeHttpAuthHandler(int nativeChromeHttpAuthHandler) {
+ private ChromeHttpAuthHandler(long nativeChromeHttpAuthHandler) {
assert nativeChromeHttpAuthHandler != 0;
mNativeChromeHttpAuthHandler = nativeChromeHttpAuthHandler;
}
@CalledByNative
- private static ChromeHttpAuthHandler create(int nativeChromeHttpAuthHandler) {
+ private static ChromeHttpAuthHandler create(long nativeChromeHttpAuthHandler) {
return new ChromeHttpAuthHandler(nativeChromeHttpAuthHandler);
}
@@ -122,13 +122,13 @@ public class ChromeHttpAuthHandler {
// Native side calls
// ---------------------------------------------
- private native void nativeSetAuth(int nativeChromeHttpAuthHandler,
+ private native void nativeSetAuth(long nativeChromeHttpAuthHandler,
String username, String password);
- private native void nativeCancelAuth(int nativeChromeHttpAuthHandler);
- private native String nativeGetCancelButtonText(int nativeChromeHttpAuthHandler);
- private native String nativeGetMessageTitle(int nativeChromeHttpAuthHandler);
- private native String nativeGetMessageBody(int nativeChromeHttpAuthHandler);
- private native String nativeGetPasswordLabelText(int nativeChromeHttpAuthHandler);
- private native String nativeGetOkButtonText(int nativeChromeHttpAuthHandler);
- private native String nativeGetUsernameLabelText(int nativeChromeHttpAuthHandler);
+ private native void nativeCancelAuth(long nativeChromeHttpAuthHandler);
+ private native String nativeGetCancelButtonText(long nativeChromeHttpAuthHandler);
+ private native String nativeGetMessageTitle(long nativeChromeHttpAuthHandler);
+ private native String nativeGetMessageBody(long nativeChromeHttpAuthHandler);
+ private native String nativeGetPasswordLabelText(long nativeChromeHttpAuthHandler);
+ private native String nativeGetOkButtonText(long nativeChromeHttpAuthHandler);
+ private native String nativeGetUsernameLabelText(long nativeChromeHttpAuthHandler);
}

Powered by Google App Engine
This is Rietveld 408576698