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

Unified Diff: base/android/jni_weak_ref.h

Issue 302173006: [Android] Java Bridge with Gin: implement Java methods invocation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/jni_weak_ref.h
diff --git a/base/android/jni_weak_ref.h b/base/android/jni_weak_ref.h
index ef39b8aedbce91f38d5bc8508b19ef55b62538c1..943e2bb3e86f1119518954c3c1df15f97c494bea 100644
--- a/base/android/jni_weak_ref.h
+++ b/base/android/jni_weak_ref.h
@@ -25,6 +25,8 @@ class BASE_EXPORT JavaObjectWeakGlobalRef {
base::android::ScopedJavaLocalRef<jobject> get(JNIEnv* env) const;
+ bool is_null() const { return obj_ == NULL; }
bulach 2014/06/09 11:44:33 hmm... :) this can be misleading, it'd be possibl
mnaganov (inactive) 2014/06/11 13:50:44 Thanks for raising this! Indeed, is_null() seems t
+
void reset();
private:

Powered by Google App Engine
This is Rietveld 408576698