| Index: ash/shelf/shelf_view_unittest.cc
|
| diff --git a/ash/shelf/shelf_view_unittest.cc b/ash/shelf/shelf_view_unittest.cc
|
| index 17ebe18112b63585db03eb3f6f094291d69c4443..45d26ba8f82652f5881b968dcb72b8a902dd05d3 100644
|
| --- a/ash/shelf/shelf_view_unittest.cc
|
| +++ b/ash/shelf/shelf_view_unittest.cc
|
| @@ -2125,20 +2125,9 @@ class ShelfViewInkDropTest : public ShelfViewTest {
|
| shell_delegate_ = new TestAppListShellDelegate;
|
| ash_test_helper()->set_test_shell_delegate(shell_delegate_);
|
|
|
| - ShelfViewTest::SetUp();
|
| -
|
| - // TODO(mohsen): Ideally, we would want to set material mode before calling
|
| - // ShelfViewTest::SetUp() so that everything is set up with the correct
|
| - // material mode. Currently, this is not possible as it expects material
|
| - // mode be UNINITIALIZED. (See https://crbug.com/620093)
|
| - ash_md_controller_.reset(new ash::test::MaterialDesignControllerTestAPI(
|
| - ash::MaterialDesignController::MATERIAL_EXPERIMENTAL));
|
| - }
|
| + set_material_mode(ash::MaterialDesignController::MATERIAL_EXPERIMENTAL);
|
|
|
| - void TearDown() override {
|
| - ash_md_controller_.reset();
|
| -
|
| - ShelfViewTest::TearDown();
|
| + ShelfViewTest::SetUp();
|
| }
|
|
|
| protected:
|
| @@ -2179,9 +2168,6 @@ class ShelfViewInkDropTest : public ShelfViewTest {
|
| shell_delegate_->app_list_presenter()->FinishVisibilityChange();
|
| }
|
|
|
| - std::unique_ptr<ash::test::MaterialDesignControllerTestAPI>
|
| - ash_md_controller_;
|
| -
|
| TestAppListShellDelegate* shell_delegate_ = nullptr; // Owned by Shell.
|
|
|
| AppListButton* app_list_button_ = nullptr;
|
|
|