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

Unified Diff: chrome/browser/chromeos/display/display_preferences_unittest.cc

Issue 12505005: Store rotation/ui scale to local state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/chromeos/display/display_preferences_unittest.cc
diff --git a/chrome/browser/chromeos/display/display_preferences_unittest.cc b/chrome/browser/chromeos/display/display_preferences_unittest.cc
index 03f0959d1893555707fa8d694970363ef1958230..731cc1e01e14dbb3ac82b09a8fe839b5164a8048 100644
--- a/chrome/browser/chromeos/display/display_preferences_unittest.cc
+++ b/chrome/browser/chromeos/display/display_preferences_unittest.cc
@@ -155,6 +155,8 @@ TEST_F(DisplayPreferencesTest, OldInitialization) {
StoreDisplayOverscan(id2, gfx::Insets(20, 20, 20, 20));
LoadDisplayPreferences();
+ ash::Shell::GetInstance()->display_manager()->UpdateDisplays();
+
// Check if the layout settings are notified to the system properly.
ash::DisplayController* display_controller =
ash::Shell::GetInstance()->display_controller();
@@ -185,6 +187,7 @@ TEST_F(DisplayPreferencesTest, PairedLayoutOverrides) {
StoreDefaultLayoutPref(ash::DisplayLayout::LEFT, 50);
LoadDisplayPreferences();
+ ash::Shell::GetInstance()->display_manager()->UpdateDisplays();
// Check if the layout settings are notified to the system properly.
// The paired layout overrides old layout.
ash::DisplayController* display_controller =
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698