| 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..a0010380508c103012778f2426873547d372e37c 100644
|
| --- a/chrome/browser/signin/oauth2_token_service_delegate_android.h
|
| +++ b/chrome/browser/signin/oauth2_token_service_delegate_android.h
|
| @@ -9,6 +9,7 @@
|
| #include <map>
|
| #include <string>
|
|
|
| +#include "base/android/scoped_java_ref.h"
|
| #include "base/android/jni_weak_ref.h"
|
| #include "base/callback.h"
|
| #include "base/memory/scoped_ptr.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);
|
|
|
| // Called by the TestingProfile class to disable account validation in
|
| // tests. This prevents the token service from trying to look up system
|
|
|