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

Unified Diff: base/android/context_utils.h

Issue 2231923002: Make GetApplicationContext return a JavaRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix not-currently-compiled unit test Created 4 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: base/android/context_utils.h
diff --git a/base/android/context_utils.h b/base/android/context_utils.h
index f172d932e969e82e71a8f99886267efd80afc325..c5289f1d5e0a67655934c6fc7be3ff928f7f1bc9 100644
--- a/base/android/context_utils.h
+++ b/base/android/context_utils.h
@@ -16,7 +16,7 @@ namespace android {
// Gets a global ref to the application context set with
// InitApplicationContext(). Ownership is retained by the function - the caller
// must NOT release it.
-BASE_EXPORT jobject GetApplicationContext();
+BASE_EXPORT const JavaRef<jobject>& GetApplicationContext();
bool RegisterContextUtils(JNIEnv* env);

Powered by Google App Engine
This is Rietveld 408576698