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

Unified Diff: ash/display/display_manager_unittest.cc

Issue 18413002: [Cleanup] Factor out layout store code from DisplayController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/display/display_manager.cc ('k') | ash/display/mouse_cursor_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager_unittest.cc
diff --git a/ash/display/display_manager_unittest.cc b/ash/display/display_manager_unittest.cc
index f06aa78f676ecc84eaefe4772ea8e2e226907a9f..935258c9954300b33e5da8630d5dc84faa911ec7 100644
--- a/ash/display/display_manager_unittest.cc
+++ b/ash/display/display_manager_unittest.cc
@@ -5,6 +5,7 @@
#include "ash/display/display_manager.h"
#include "ash/display/display_controller.h"
+#include "ash/display/display_layout_store.h"
#include "ash/screen_ash.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
@@ -647,11 +648,11 @@ TEST_F(DisplayManagerTest, EnsurePointerInDisplays_2ndOnLeft) {
return;
// Set the 2nd display on the left.
- DisplayController* display_controller =
- Shell::GetInstance()->display_controller();
- DisplayLayout layout = display_controller->default_display_layout();
+ DisplayLayoutStore* layout_store =
+ Shell::GetInstance()->display_manager()->layout_store();
+ DisplayLayout layout = layout_store->default_display_layout();
layout.position = DisplayLayout::LEFT;
- display_controller->SetDefaultDisplayLayout(layout);
+ layout_store->SetDefaultDisplayLayout(layout);
UpdateDisplay("200x200,300x300");
Shell::RootWindowList root_windows = Shell::GetAllRootWindows();
« no previous file with comments | « ash/display/display_manager.cc ('k') | ash/display/mouse_cursor_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698