Index: ash/content/display/screen_orientation_delegate_chromeos_unittest.cc |
diff --git a/ash/content/display/screen_orientation_delegate_chromeos_unittest.cc b/ash/content/display/screen_orientation_delegate_chromeos_unittest.cc |
index 28d9bda1f5074854de37f1165bdbcc132967df4a..b1bd5e00f95426924f2729d5a0c50ec951742712 100644 |
--- a/ash/content/display/screen_orientation_delegate_chromeos_unittest.cc |
+++ b/ash/content/display/screen_orientation_delegate_chromeos_unittest.cc |
@@ -34,7 +34,7 @@ gfx::Display::Rotation Rotation() { |
} |
bool RotationLocked() { |
- return Shell::GetInstance()->maximize_mode_controller()->rotation_locked(); |
+ return Shell::GetInstance()->screen_orientation_delegate()->rotation_locked(); |
} |
} // namespace |
@@ -146,7 +146,7 @@ TEST_F(ScreenOrientationDelegateTest, OrientationChanges) { |
// Tests that a user initiated rotation lock cannot be unlocked by a |
// content::WebContents. |
TEST_F(ScreenOrientationDelegateTest, UserLockRejectsUnlock) { |
- Shell::GetInstance()->maximize_mode_controller()->SetRotationLocked(true); |
+ delegate()->SetRotationLocked(true); |
scoped_ptr<content::WebContents> content(CreateWebContents()); |
delegate()->Unlock(content.get()); |