Commit 068ce39e authored by Sky Malice's avatar Sky Malice Committed by Commit Bot

[Feed] Comment out NTP asserts.

Bug: 992585
Change-Id: I76d8de861d6844bfa00bd402ab8bf4110c7974f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1819997Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Sky Malice <skym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699099}
parent 92f74d66
...@@ -9,7 +9,6 @@ import android.graphics.Canvas; ...@@ -9,7 +9,6 @@ import android.graphics.Canvas;
import android.graphics.Point; import android.graphics.Point;
import android.graphics.Rect; import android.graphics.Rect;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
...@@ -698,9 +697,11 @@ public class NewTabPage implements NativePage, InvalidationAwareThumbnailProvide ...@@ -698,9 +697,11 @@ public class NewTabPage implements NativePage, InvalidationAwareThumbnailProvide
@Override @Override
public void destroy() { public void destroy() {
assert !mIsDestroyed; // Temporarily removing asserts during window when they're not compiled out of release
assert !ViewCompat // builds, see https://crbug.com/992585 for more information.
.isAttachedToWindow(getView()) : "Destroy called before removed from window"; // assert !mIsDestroyed;
// assert !ViewCompat
// .isAttachedToWindow(getView()) : "Destroy called before removed from window";
if (mIsLoaded && !mTab.isHidden()) recordNTPHidden(); if (mIsLoaded && !mTab.isHidden()) recordNTPHidden();
mNewTabPageManager.onDestroy(); mNewTabPageManager.onDestroy();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment