Index: services/ui/ws/window_tree.cc |
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc |
index 8602975133cad3c06da70455c4e44c282aa2d9d3..89ef41112b3c944243ac3b9822f10b336d9e6656 100644 |
--- a/services/ui/ws/window_tree.cc |
+++ b/services/ui/ws/window_tree.cc |
@@ -197,10 +197,10 @@ void WindowTree::AddRootForWindowManager(const ServerWindow* root) { |
window_id_to_client_id_map_[root->id()] = client_window_id; |
roots_.insert(root); |
- Display* display = GetDisplay(root); |
- DCHECK(display); |
+ Display* ws_display = GetDisplay(root); |
+ DCHECK(ws_display); |
- window_manager_internal_->WmNewDisplayAdded(display->ToDisplay(), |
+ window_manager_internal_->WmNewDisplayAdded(ws_display->GetDisplay(), |
WindowToWindowData(root), |
root->parent()->IsDrawn()); |
} |