| Index: ash/system/overview/overview_button_tray_unittest.cc
 | 
| diff --git a/ash/system/overview/overview_button_tray_unittest.cc b/ash/system/overview/overview_button_tray_unittest.cc
 | 
| index 26061062d9200017c6f949f6258ae7425670b796..44cb7ea10154c9ecc7fad9a479d575b71f0a32dc 100644
 | 
| --- a/ash/system/overview/overview_button_tray_unittest.cc
 | 
| +++ b/ash/system/overview/overview_button_tray_unittest.cc
 | 
| @@ -16,8 +16,8 @@
 | 
|  #include "ash/test/ash_test_base.h"
 | 
|  #include "ash/test/ash_test_helper.h"
 | 
|  #include "ash/test/status_area_widget_test_helper.h"
 | 
| +#include "ash/wm/maximize_mode/maximize_mode_controller.h"
 | 
|  #include "ash/wm/overview/window_selector_controller.h"
 | 
| -#include "ash/wm/tablet_mode/tablet_mode_controller.h"
 | 
|  #include "ash/wm/window_util.h"
 | 
|  #include "base/command_line.h"
 | 
|  #include "base/test/user_action_tester.h"
 | 
| @@ -98,15 +98,17 @@
 | 
|    EXPECT_TRUE(GetImageView(GetTray()) != NULL);
 | 
|  }
 | 
|  
 | 
| -// Test that tablet mode toggle changes visibility.
 | 
| -// OverviewButtonTray should only be visible when TabletMode is enabled.
 | 
| -// By default the system should not have TabletMode enabled.
 | 
| -TEST_F(OverviewButtonTrayTest, TabletModeObserverOnTabletModeToggled) {
 | 
| +// Test that maximize mode toggle changes visibility.
 | 
| +// OverviewButtonTray should only be visible when MaximizeMode is enabled.
 | 
| +// By default the system should not have MaximizeMode enabled.
 | 
| +TEST_F(OverviewButtonTrayTest, MaximizeModeObserverOnMaximizeModeToggled) {
 | 
|    ASSERT_FALSE(GetTray()->visible());
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
 | 
| -  EXPECT_TRUE(GetTray()->visible());
 | 
| -
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(false);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      true);
 | 
| +  EXPECT_TRUE(GetTray()->visible());
 | 
| +
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      false);
 | 
|    EXPECT_FALSE(GetTray()->visible());
 | 
|  }
 | 
|  
 | 
| @@ -188,31 +190,36 @@
 | 
|  }
 | 
|  
 | 
|  // Tests that a second OverviewButtonTray has been created, and only shows
 | 
| -// when TabletMode has been enabled,  when we are using multiple displays.
 | 
| +// when MaximizeMode has been enabled,  when we are using multiple displays.
 | 
|  // By default the DisplayManger is in extended mode.
 | 
|  TEST_F(OverviewButtonTrayTest, DisplaysOnBothDisplays) {
 | 
|    UpdateDisplay("400x400,200x200");
 | 
|    EXPECT_FALSE(GetTray()->visible());
 | 
|    EXPECT_FALSE(GetSecondaryTray()->visible());
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      true);
 | 
|    EXPECT_TRUE(GetTray()->visible());
 | 
|    EXPECT_TRUE(GetSecondaryTray()->visible());
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(false);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      false);
 | 
|  }
 | 
|  
 | 
|  // Tests if Maximize Mode is enabled before a secondary display is attached
 | 
|  // that the second OverviewButtonTray should be created in a visible state.
 | 
|  TEST_F(OverviewButtonTrayTest, SecondaryTrayCreatedVisible) {
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      true);
 | 
|    UpdateDisplay("400x400,200x200");
 | 
|    EXPECT_TRUE(GetSecondaryTray()->visible());
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(false);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      false);
 | 
|  }
 | 
|  
 | 
|  // Tests that the tray loses visibility when a user logs out, and that it
 | 
|  // regains visibility when a user logs back in.
 | 
|  TEST_F(OverviewButtonTrayTest, VisibilityChangesForLoginStatus) {
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      true);
 | 
|    SetUserLoggedIn(false);
 | 
|    Shell::Get()->UpdateAfterLoginStatusChange(LoginStatus::NOT_LOGGED_IN);
 | 
|    EXPECT_FALSE(GetTray()->visible());
 | 
| @@ -226,7 +233,8 @@
 | 
|    SetUserAddingScreenRunning(false);
 | 
|    NotifySessionStateChanged();
 | 
|    EXPECT_TRUE(GetTray()->visible());
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(false);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      false);
 | 
|  }
 | 
|  
 | 
|  // Tests that the tray only renders as active while selection is ongoing. Any
 | 
| @@ -256,7 +264,8 @@
 | 
|    if (Shell::GetAshConfig() == Config::MASH)
 | 
|      return;
 | 
|  
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      true);
 | 
|  
 | 
|    // Long duration for hide animation, to allow it to be interrupted.
 | 
|    std::unique_ptr<ui::ScopedAnimationDurationScaleMode> hide_duration(
 | 
| @@ -278,8 +287,8 @@
 | 
|  }
 | 
|  
 | 
|  // Tests that the overview button becomes visible when the user enters
 | 
| -// tablet mode with a system modal window open, and that it hides once
 | 
| -// the user exits tablet mode.
 | 
| +// maximize mode with a system modal window open, and that it hides once
 | 
| +// the user exits maximize mode.
 | 
|  TEST_F(OverviewButtonTrayTest, VisibilityChangesForSystemModalWindow) {
 | 
|    // TODO(jonross): When CreateTestWindow*() have been unified, use the
 | 
|    // appropriate method to replace this setup. (crbug.com/483503)
 | 
| @@ -291,9 +300,11 @@
 | 
|    ParentWindowInPrimaryRootWindow(window.get());
 | 
|  
 | 
|    ASSERT_TRUE(ShellPort::Get()->IsSystemModalWindowOpen());
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(true);
 | 
| -  EXPECT_TRUE(GetTray()->visible());
 | 
| -  Shell::Get()->tablet_mode_controller()->EnableTabletModeWindowManager(false);
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      true);
 | 
| +  EXPECT_TRUE(GetTray()->visible());
 | 
| +  Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
 | 
| +      false);
 | 
|    EXPECT_FALSE(GetTray()->visible());
 | 
|  }
 | 
|  
 | 
| 
 |