Index: base/android/jni_weak_ref.cc |
diff --git a/base/android/jni_weak_ref.cc b/base/android/jni_weak_ref.cc |
index 35a76dab7692bffbe4d4ed1c416189f05eee44f9..55244f2f7331c8a591f02c6051923d7ebda3b33c 100644 |
--- a/base/android/jni_weak_ref.cc |
+++ b/base/android/jni_weak_ref.cc |
@@ -47,11 +47,8 @@ base::android::ScopedJavaLocalRef<jobject> |
base::android::ScopedJavaLocalRef<jobject> GetRealObject( |
JNIEnv* env, jweak obj) { |
jobject real = NULL; |
- if (obj) { |
+ if (obj) |
real = env->NewLocalRef(obj); |
- if (!real) |
- DLOG(ERROR) << "The real object has been deleted!"; |
- } |
return base::android::ScopedJavaLocalRef<jobject>(env, real); |
} |