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: |