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

Unified Diff: chrome/browser/extensions/display_info_provider_chromeos_unittest.cc

Issue 1108343002: Revert of 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
Index: chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
diff --git a/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc b/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
index caef15fbb5df5ddd2d88db621bc18ea5583e4ed3..493e54c4ac7ca72264f6af428cb46a200877b620 100644
--- a/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
+++ b/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
@@ -121,8 +121,7 @@
EXPECT_EQ("0,0 600x500", SystemInfoDisplayBoundsToString(result[0]->bounds));
EXPECT_EQ(90, result[0]->rotation);
- GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_270,
- gfx::Display::ROTATION_SOURCE_ACTIVE);
+ GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_270);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();
@@ -132,8 +131,7 @@
EXPECT_EQ("0,0 600x500", SystemInfoDisplayBoundsToString(result[0]->bounds));
EXPECT_EQ(270, result[0]->rotation);
- GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_180,
- gfx::Display::ROTATION_SOURCE_ACTIVE);
+ GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_180);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();
@@ -143,8 +141,7 @@
EXPECT_EQ("0,0 500x600", SystemInfoDisplayBoundsToString(result[0]->bounds));
EXPECT_EQ(180, result[0]->rotation);
- GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_0,
- gfx::Display::ROTATION_SOURCE_ACTIVE);
+ GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_0);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();

Powered by Google App Engine
This is Rietveld 408576698