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

Unified Diff: ui/views/animation/test/ink_drop_host_view_test_api.cc

Issue 2070143003: Add MD ink drop ripple to app list button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b612539_shelf_button_ripple
Patch Set: Updated tests Created 4 years, 6 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
Index: ui/views/animation/test/ink_drop_host_view_test_api.cc
diff --git a/ui/views/animation/test/ink_drop_host_view_test_api.cc b/ui/views/animation/test/ink_drop_host_view_test_api.cc
index a97628bfab077d2eb02542bfc5ae14f5e9f5bb3d..af35104ef87e3ffdae6ae75220dbf280c9c5ac8c 100644
--- a/ui/views/animation/test/ink_drop_host_view_test_api.cc
+++ b/ui/views/animation/test/ink_drop_host_view_test_api.cc
@@ -13,7 +13,8 @@ InkDropHostViewTestApi::InkDropHostViewTestApi(InkDropHostView* host_view)
InkDropHostViewTestApi::~InkDropHostViewTestApi() {}
void InkDropHostViewTestApi::SetInkDrop(std::unique_ptr<InkDrop> ink_drop) {
- host_view_->SetHasInkDrop(true);
+ if (!host_view_->ink_drop_)
bruthig 2016/06/22 19:07:29 This should never result in true, InkDropHostViews
+ host_view_->SetHasInkDrop(true);
host_view_->ink_drop_ = std::move(ink_drop);
}

Powered by Google App Engine
This is Rietveld 408576698