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

Unified Diff: android_webview/java/src/org/chromium/android_webview/CleanupReference.java

Issue 2281313002: aw: Generalize destroy runnable hasRun (Closed)
Patch Set: Created 4 years, 4 months 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 | « android_webview/java/src/org/chromium/android_webview/AwContents.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/CleanupReference.java
diff --git a/android_webview/java/src/org/chromium/android_webview/CleanupReference.java b/android_webview/java/src/org/chromium/android_webview/CleanupReference.java
index 80a6bd93ae67328c279e13c0fa825f6c73274511..73f3b600c6955de5afd75bb01c1772d8d4005dd7 100644
--- a/android_webview/java/src/org/chromium/android_webview/CleanupReference.java
+++ b/android_webview/java/src/org/chromium/android_webview/CleanupReference.java
@@ -146,6 +146,10 @@ public class CleanupReference extends WeakReference<Object> {
handleOnUiThread(REMOVE_REF);
}
+ public boolean hasCleanedUp() {
+ return mCleanupTask == null;
+ }
+
private void handleOnUiThread(int what) {
Message msg = Message.obtain(LazyHolder.sHandler, what, this);
if (Looper.myLooper() == msg.getTarget().getLooper()) {
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContents.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698