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 4c7788b8e6ffc870956cc82967e5a9b44533d5b3..1b5cc4c7d4fcd9c1032a105772ce4ed035ccc242 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(); |
Shell::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()); |
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
@@ -148,8 +149,9 @@ TEST_F(TrayRotationLockTest, TrayViewVisibilityChangesDuringMaximizeMode) { |
ASSERT_FALSE(tray_view()->visible()); |
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
true); |
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( |
- true); |
+ Shell::GetInstance() |
+ ->screen_orientation_controller() |
+ ->ToggleUserRotationLock(); |
EXPECT_TRUE(tray_view()->visible()); |
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
false); |
@@ -258,8 +260,9 @@ TEST_F(TrayRotationLockTest, LockUpdatedDuringDesctruction) { |
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
true); |
DestroyTrayView(); |
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( |
- true); |
+ Shell::GetInstance() |
+ ->screen_orientation_controller() |
+ ->ToggleUserRotationLock(); |
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
false); |
} |