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

Unified Diff: ash/wm/lock_layout_manager_unittest.cc

Issue 1107383002: Merge Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Created 5 years, 8 months 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
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/lock_layout_manager_unittest.cc
diff --git a/ash/wm/lock_layout_manager_unittest.cc b/ash/wm/lock_layout_manager_unittest.cc
index fc097fb303cd6181a44f1c5df2ee5575147bf35d..17994161281d344aec8532db86b6f23524be202c 100644
--- a/ash/wm/lock_layout_manager_unittest.cc
+++ b/ash/wm/lock_layout_manager_unittest.cc
@@ -212,12 +212,14 @@ TEST_F(LockLayoutManagerTest, KeyboardBounds) {
ash::DisplayManager* display_manager =
Shell::GetInstance()->display_manager();
display_manager->SetDisplayRotation(primary_display.id(),
- gfx::Display::ROTATE_90);
+ gfx::Display::ROTATE_90,
+ gfx::Display::ROTATION_SOURCE_ACTIVE);
primary_display = Shell::GetScreen()->GetPrimaryDisplay();
screen_bounds = primary_display.bounds();
EXPECT_EQ(screen_bounds.ToString(), window->GetBoundsInScreen().ToString());
display_manager->SetDisplayRotation(primary_display.id(),
- gfx::Display::ROTATE_0);
+ gfx::Display::ROTATE_0,
+ gfx::Display::ROTATION_SOURCE_ACTIVE);
// When virtual keyboard overscroll is disabled keyboard bounds do
// affect window bounds.
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698