Commit fd1f2658 authored by Scott Violet's avatar Scott Violet Committed by Commit Bot

chromeos: fix ShellPortMash::Get() reference

ShellPortMash is no longer always created. The code path this code
calls is only applicable to mash, so can early out for mus.

BUG=none
TEST=none

Change-Id: I55c58c353c0ebeba70cfec313a62c845e00faee9
Reviewed-on: https://chromium-review.googlesource.com/747204Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512919}
parent 5baa98ab
......@@ -486,6 +486,8 @@ ui::mojom::EventResult WindowManager::OnAccelerator(
}
void WindowManager::OnCursorTouchVisibleChanged(bool enabled) {
// Not applicable to Config::MUS.
if (config_ == Config::MASH)
ShellPortMash::Get()->OnCursorTouchVisibleChanged(enabled);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment