Index: base/android/scoped_java_ref.h |
diff --git a/base/android/scoped_java_ref.h b/base/android/scoped_java_ref.h |
index 7863c0bef3a21fd908e0a836f8f03240cb591660..8047ee8c16725ab0470acc1b71dfb77f5594e439 100644 |
--- a/base/android/scoped_java_ref.h |
+++ b/base/android/scoped_java_ref.h |
@@ -178,6 +178,8 @@ class ScopedJavaGlobalRef : public JavaRef<T> { |
this->Reset(other); |
} |
+ ScopedJavaGlobalRef(JNIEnv* env, T obj) { this->Reset(env, obj); } |
+ |
template<typename U> |
explicit ScopedJavaGlobalRef(const U& other) { |
this->Reset(other); |