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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java

Issue 2595933002: Change assert in RecentTabsPage.destroy() (Closed)
Patch Set: Created 4 years 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: chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
index 8b16c18b0537567e74a368c5964f980f19065f76..2ed861682524af6172696b8f82fc7dfa314f6d63 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
@@ -170,7 +170,7 @@ public class RecentTabsPage
@Override
public void destroy() {
- assert getView().getParent() == null : "Destroy called before removed from window";
+ assert !mIsAttachedToWindow : "Destroy called before removed from window";
mRecentTabsManager.destroy();
mRecentTabsManager = null;
mAdapter.notifyDataSetInvalidated();
« 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