| Index: chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc
|
| diff --git a/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc b/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc
|
| index b838b6873608df91734c54d4da0363f0da73a6e5..7bea64400c69f04e0fef89f2246de61f7f3b07d0 100644
|
| --- a/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc
|
| +++ b/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc
|
| @@ -13,9 +13,9 @@
|
| #include "ash/test/ash_test_environment_content.h"
|
| #include "ash/test/ash_test_helper.h"
|
| #include "ash/test/test_shell_delegate.h"
|
| +#include "ash/wm/maximize_mode/maximize_mode_controller.h"
|
| +#include "ash/wm/maximize_mode/maximize_mode_window_manager.h"
|
| #include "ash/wm/mru_window_tracker.h"
|
| -#include "ash/wm/tablet_mode/tablet_mode_controller.h"
|
| -#include "ash/wm/tablet_mode/tablet_mode_window_manager.h"
|
| #include "ash/wm/window_state.h"
|
| #include "ash/wm/window_util.h"
|
| #include "ash/wm/wm_event.h"
|
| @@ -270,17 +270,18 @@
|
| return chrome::UserSwitchAnimatorChromeOS::CoversScreen(window);
|
| }
|
|
|
| - // Create a tablet mode window manager.
|
| - TabletModeWindowManager* CreateTabletModeWindowManager() {
|
| - EXPECT_FALSE(tablet_mode_window_manager());
|
| - Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
|
| - return tablet_mode_window_manager();
|
| - }
|
| -
|
| - TabletModeWindowManager* tablet_mode_window_manager() {
|
| + // Create a maximize mode window manager.
|
| + MaximizeModeWindowManager* CreateMaximizeModeWindowManager() {
|
| + EXPECT_FALSE(maximize_mode_window_manager());
|
| + Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
|
| + true);
|
| + return maximize_mode_window_manager();
|
| + }
|
| +
|
| + MaximizeModeWindowManager* maximize_mode_window_manager() {
|
| return Shell::Get()
|
| - ->tablet_mode_controller()
|
| - ->tablet_mode_window_manager_.get();
|
| + ->maximize_mode_controller()
|
| + ->maximize_mode_window_manager_.get();
|
| }
|
|
|
| private:
|
| @@ -298,7 +299,7 @@
|
| chromeos::ScopedUserManagerEnabler user_manager_enabler_;
|
|
|
| // The maximized window manager (if enabled).
|
| - std::unique_ptr<TabletModeWindowManager> tablet_mode_window_manager_;
|
| + std::unique_ptr<MaximizeModeWindowManager> maximize_mode_window_manager_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOSTest);
|
| };
|
| @@ -854,9 +855,9 @@
|
| EXPECT_EQ("H[A,B], H[A,B], S[B,A], H[B,A]", GetStatus());
|
| }
|
|
|
| -// Test that in case of an activated tablet mode, windows from other users get
|
| +// Test that in case of an activated maximize mode, windows from other users get
|
| // maximized after a user switch.
|
| -TEST_F(MultiUserWindowManagerChromeOSTest, TabletModeInteraction) {
|
| +TEST_F(MultiUserWindowManagerChromeOSTest, MaximizeModeInteraction) {
|
| SetUpForThisManyWindows(2);
|
|
|
| const AccountId account_id_A(AccountId::FromUserEmail("A"));
|
| @@ -868,7 +869,7 @@
|
| EXPECT_FALSE(wm::GetWindowState(window(0))->IsMaximized());
|
| EXPECT_FALSE(wm::GetWindowState(window(1))->IsMaximized());
|
|
|
| - TabletModeWindowManager* manager = CreateTabletModeWindowManager();
|
| + MaximizeModeWindowManager* manager = CreateMaximizeModeWindowManager();
|
| ASSERT_TRUE(manager);
|
|
|
| EXPECT_TRUE(wm::GetWindowState(window(0))->IsMaximized());
|
|
|