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

Unified Diff: android_webview/native/popup_touch_handle_drawable.cc

Issue 2485513003: Rename JavaObjectWeakGlobalRef::is_empty to avoid misuse. (Closed)
Patch Set: Created 4 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
Index: android_webview/native/popup_touch_handle_drawable.cc
diff --git a/android_webview/native/popup_touch_handle_drawable.cc b/android_webview/native/popup_touch_handle_drawable.cc
index d46122cc8e0ab2ab48e4a0ff0ea80a5134ecf82a..0ba52f1b45a6b85ba8542bd18cd8dad57da375ac 100644
--- a/android_webview/native/popup_touch_handle_drawable.cc
+++ b/android_webview/native/popup_touch_handle_drawable.cc
@@ -17,7 +17,7 @@ PopupTouchHandleDrawable::PopupTouchHandleDrawable(
float horizontal_padding_ratio)
: java_ref_(env, obj)
, drawable_horizontal_padding_ratio_(horizontal_padding_ratio) {
- DCHECK(!java_ref_.is_empty());
+ DCHECK(obj);
}
PopupTouchHandleDrawable::~PopupTouchHandleDrawable() {

Powered by Google App Engine
This is Rietveld 408576698