summaryrefslogtreecommitdiffstats
path: root/ash/root_window_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/root_window_controller.cc')
-rw-r--r--ash/root_window_controller.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 0e07dbe..eb97d25 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -284,17 +284,20 @@ void RootWindowController::CreateForVirtualKeyboardDisplay(
// static
RootWindowController* RootWindowController::ForShelf(
const aura::Window* window) {
+ CHECK(Shell::HasInstance());
return GetRootWindowController(window->GetRootWindow());
}
// static
RootWindowController* RootWindowController::ForWindow(
const aura::Window* window) {
+ CHECK(Shell::HasInstance());
return GetRootWindowController(window->GetRootWindow());
}
// static
RootWindowController* RootWindowController::ForTargetRootWindow() {
+ CHECK(Shell::HasInstance());
return GetRootWindowController(Shell::GetTargetRootWindow());
}