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

Unified Diff: chrome/browser/profiles/profile_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/profiles/profile_android.h
diff --git a/chrome/browser/profiles/profile_android.h b/chrome/browser/profiles/profile_android.h
index b336342ca03a49dcb8c479b6cf5d1f7a796c742d..e6ed2c87da21a13b8bd22b965f36d877465ac7fb 100644
--- a/chrome/browser/profiles/profile_android.h
+++ b/chrome/browser/profiles/profile_android.h
@@ -21,7 +21,9 @@ class ProfileAndroid : public base::SupportsUserData::Data {
static Profile* FromProfileAndroid(jobject obj);
static bool RegisterProfileAndroid(JNIEnv* env);
- static jobject GetLastUsedProfile(JNIEnv* env, jclass clazz);
+ static base::android::ScopedJavaLocalRef<jobject> GetLastUsedProfile(
+ JNIEnv* env,
+ jclass clazz);
// Destroys this Profile when possible.
void DestroyWhenAppropriate(JNIEnv* env, jobject obj);

Powered by Google App Engine
This is Rietveld 408576698