Chromium Code Reviews| Index: ui/views/animation/test/test_ink_drop_delegate.cc |
| diff --git a/ui/views/animation/test/test_ink_drop_delegate.cc b/ui/views/animation/test/test_ink_drop_delegate.cc |
| index 9d20cf0fffc09e5f7b6a6cacb83efcdc4e1b4330..9ab4c7c6c771e57ced68920377cd4e68f3f5e9ac 100644 |
| --- a/ui/views/animation/test/test_ink_drop_delegate.cc |
| +++ b/ui/views/animation/test/test_ink_drop_delegate.cc |
| @@ -2,6 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include "ui/views/animation/test/test_ink_drop.h" |
| #include "ui/views/animation/test/test_ink_drop_delegate.h" |
| namespace views { |
| @@ -29,7 +30,9 @@ InkDropState TestInkDropDelegate::GetTargetInkDropState() const { |
| } |
| InkDrop* TestInkDropDelegate::GetInkDrop() { |
| - return nullptr; |
| + if (!ink_drop_.get()) |
| + ink_drop_ = base::WrapUnique(new TestInkDrop()); |
|
sky
2016/06/02 02:01:40
nit: ink_drop.reset(new TestInkDrop); is shorter a
|
| + return ink_drop_.get(); |
| } |
| } // namespace test |