Commit c5bb7de6 authored by Andrew Xu's avatar Andrew Xu Committed by Commit Bot

nit: DCHECK for each condition

It is requested by oshima@.

Bug: 911753
Change-Id: I1445c367d49cd5e57237f19c61e0305474cacc73
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1606968
Commit-Queue: Andrew Xu <andrewxu@chromium.org>
Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659778}
parent cd7d584d
......@@ -458,9 +458,9 @@ class PeekingResetAnimation : public ui::LayerAnimationElement {
gfx::PointF(0, y_offset),
gfx::PointF())),
view_(view) {
DCHECK(view_->is_in_drag() &&
view_->app_list_state() == ash::mojom::AppListViewState::kPeeking &&
!view_->is_tablet_mode());
DCHECK(view_->is_in_drag());
DCHECK_EQ(view_->app_list_state(), ash::mojom::AppListViewState::kPeeking);
DCHECK(!view_->is_tablet_mode());
}
~PeekingResetAnimation() override = default;
......
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