Index: ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc |
diff --git a/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc b/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc |
index a902e92167e7ac6825adef902c82ac4d82cee6cc..381632fc67b58315963549b41b9642519e8dcd1a 100644 |
--- a/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc |
+++ b/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc |
@@ -133,8 +133,9 @@ TEST_F(TrayRotationLockTest, CreateTrayViewDuringMaximizeModeAndRotationLock) { |
TearDownViews(); |
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
true); |
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( |
- true); |
+ Shell::GetInstance() |
+ ->screen_orientation_controller() |
+ ->ToggleUserRotationLock(); |
SetUpForStatusAreaWidget(StatusAreaWidgetTestHelper::GetStatusAreaWidget()); |
EXPECT_TRUE(tray_view()->visible()); |
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
@@ -148,8 +149,9 @@ TEST_F(TrayRotationLockTest, TrayViewVisibilityChangesDuringMaximizeMode) { |
ASSERT_FALSE(tray_view()->visible()); |
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
true); |
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( |
- true); |
+ Shell::GetInstance() |
+ ->screen_orientation_controller() |
+ ->ToggleUserRotationLock(); |
EXPECT_TRUE(tray_view()->visible()); |
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
false); |
@@ -258,8 +260,9 @@ TEST_F(TrayRotationLockTest, LockUpdatedDuringDesctruction) { |
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
true); |
DestroyTrayView(); |
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( |
- true); |
+ Shell::GetInstance() |
+ ->screen_orientation_controller() |
+ ->ToggleUserRotationLock(); |
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
false); |
} |