summaryrefslogtreecommitdiffstats
path: root/ash/display/window_tree_host_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/display/window_tree_host_manager.cc')
-rw-r--r--ash/display/window_tree_host_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/display/window_tree_host_manager.cc b/ash/display/window_tree_host_manager.cc
index 13e143b..b24022e 100644
--- a/ash/display/window_tree_host_manager.cc
+++ b/ash/display/window_tree_host_manager.cc
@@ -445,7 +445,7 @@ void WindowTreeHostManager::SetPrimaryDisplayId(int64_t id) {
// Only update the layout if it is requested to swap primary display.
if (layout.primary_id != new_primary_display.id()) {
scoped_ptr<DisplayLayout> swapped_layout(layout.Copy());
- swapped_layout->placement_list[0]->Swap();
+ swapped_layout->placement_list[0].Swap();
swapped_layout->primary_id = new_primary_display.id();
DisplayIdList list = display_manager->GetCurrentDisplayIdList();
GetDisplayManager()->layout_store()->RegisterLayoutForDisplayIdList(