Index: ash/shell.cc |
diff --git a/ash/shell.cc b/ash/shell.cc |
index 6aca4b217fa785c7a35a33b792223bf018b38615..64ebb4a75f5dbd61bde1090dab08c050d36dcbcf 100644 |
--- a/ash/shell.cc |
+++ b/ash/shell.cc |
@@ -196,7 +196,7 @@ Shell* Shell::CreateInstance(const ShellInitParams& init_params) { |
// static |
Shell* Shell::GetInstance() { |
- DCHECK(instance_); |
+ CHECK(instance_); |
return instance_; |
} |
@@ -213,22 +213,26 @@ void Shell::DeleteInstance() { |
// static |
RootWindowController* Shell::GetPrimaryRootWindowController() { |
+ CHECK(HasInstance()); |
return GetRootWindowController(GetPrimaryRootWindow()); |
} |
// static |
Shell::RootWindowControllerList Shell::GetAllRootWindowControllers() { |
+ CHECK(HasInstance()); |
return Shell::GetInstance()->display_controller()-> |
GetAllRootWindowControllers(); |
} |
// static |
aura::Window* Shell::GetPrimaryRootWindow() { |
+ CHECK(HasInstance()); |
return GetInstance()->display_controller()->GetPrimaryRootWindow(); |
} |
// static |
aura::Window* Shell::GetTargetRootWindow() { |
+ CHECK(HasInstance()); |
Shell* shell = GetInstance(); |
if (shell->scoped_target_root_window_) |
return shell->scoped_target_root_window_; |
@@ -242,6 +246,7 @@ gfx::Screen* Shell::GetScreen() { |
// static |
aura::Window::Windows Shell::GetAllRootWindows() { |
+ CHECK(HasInstance()); |
return Shell::GetInstance()->display_controller()-> |
GetAllRootWindows(); |
} |