Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2285)

Unified Diff: ash/content/display/screen_orientation_delegate_chromeos_unittest.cc

Issue 759063002: Move Screen Rotation from MaximizeModeController to ScreenOrientationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698