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

Unified Diff: chrome/browser/signin/oauth2_token_service_delegate_android.h

Issue 1288183004: jni_generator: Make all object-returning natives return ScopedJavaLocalRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some newlines for readability Created 5 years, 4 months 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/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
« no previous file with comments | « chrome/browser/profiles/profile_android.cc ('k') | chrome/browser/signin/oauth2_token_service_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698