Index: ash/shelf/shelf_view_unittest.cc |
diff --git a/ash/shelf/shelf_view_unittest.cc b/ash/shelf/shelf_view_unittest.cc |
index b864b815be60d6cc31adac3473a4f9fa7de77b66..7df5f14402662d500183148928ad8fda285e9f62 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); |
tdanderson
2016/07/29 15:16:50
Just a thought (not necessarily something to addre
bruthig
2016/07/29 16:13:04
+1 to something like this. Could "ModeForShelf()"
mohsen
2016/07/29 18:05:19
As discussed in person, this is not simple since E
|
- 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; |