Index: chrome/browser/signin/oauth2_token_service_delegate_android.h |
diff --git a/chrome/browser/signin/oauth2_token_service_delegate_android.h b/chrome/browser/signin/oauth2_token_service_delegate_android.h |
index 0447c702db391918b4c73747f880b5f6c9b63fb7..a35837d22c32a6e58eb45a8aa15b7b37f1b3e1b6 100644 |
--- a/chrome/browser/signin/oauth2_token_service_delegate_android.h |
+++ b/chrome/browser/signin/oauth2_token_service_delegate_android.h |
@@ -10,6 +10,7 @@ |
#include <string> |
#include "base/android/jni_weak_ref.h" |
+#include "base/android/scoped_java_ref.h" |
#include "base/callback.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/time/time.h" |
@@ -35,9 +36,8 @@ class OAuth2TokenServiceDelegateAndroid : public OAuth2TokenServiceDelegate { |
static OAuth2TokenServiceDelegateAndroid* Create(); |
// Returns a reference to the Java instance of this service. |
- static jobject GetForProfile(JNIEnv* env, |
- jclass clazz, |
- jobject j_profile_android); |
+ static base::android::ScopedJavaLocalRef<jobject> |
+ GetForProfile(JNIEnv* env, jclass clazz, jobject j_profile_android); |
Mike Lerman
2015/08/18 14:17:39
nit: indent
|
// Called by the TestingProfile class to disable account validation in |
// tests. This prevents the token service from trying to look up system |