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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2734933004: ash: Use SessionController instead of SessionStateDelegate (Closed)
Patch Set: rebase Created 3 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: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 9b93c51aa52c4206e39da9f44e89475a51a30b5f..115c14ac4c149ba79c922c02e94481077a1c34ee 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1601,8 +1601,10 @@ void WindowTreeClient::SetFrameDecorationValues(
void WindowTreeClient::SetNonClientCursor(Window* window,
ui::mojom::Cursor cursor_id) {
- window_manager_internal_client_->WmSetNonClientCursor(
- WindowMus::Get(window)->server_id(), cursor_id);
+ if (window_manager_internal_client_) {
+ window_manager_internal_client_->WmSetNonClientCursor(
+ WindowMus::Get(window)->server_id(), cursor_id);
+ }
}
void WindowTreeClient::AddAccelerators(

Powered by Google App Engine
This is Rietveld 408576698