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); |
} |