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

Unified Diff: base/android/jni_weak_ref.cc

Issue 1489703002: android: Don't log error when checking weak ref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698