Index: ash/common/wm/panels/panel_layout_manager.cc |
diff --git a/ash/common/wm/panels/panel_layout_manager.cc b/ash/common/wm/panels/panel_layout_manager.cc |
index b78f31ffdb1c52e6459254765a06ca332d8c2b74..66ddd3cee80cc76ce0dcf02dc5af21f1b07b47f7 100644 |
--- a/ash/common/wm/panels/panel_layout_manager.cc |
+++ b/ash/common/wm/panels/panel_layout_manager.cc |
@@ -253,7 +253,7 @@ PanelLayoutManager::PanelLayoutManager(WmWindow* panel_container) |
WmShell* shell = panel_container->GetShell(); |
Shell::GetInstance()->activation_client()->AddObserver(this); |
shell->AddDisplayObserver(this); |
- shell->AddShellObserver(this); |
+ Shell::GetInstance()->AddShellObserver(this); |
} |
PanelLayoutManager::~PanelLayoutManager() { |
@@ -284,7 +284,7 @@ void PanelLayoutManager::Shutdown() { |
WmShell* shell = panel_container_->GetShell(); |
Shell::GetInstance()->activation_client()->RemoveObserver(this); |
shell->RemoveDisplayObserver(this); |
- shell->RemoveShellObserver(this); |
+ Shell::GetInstance()->RemoveShellObserver(this); |
} |
void PanelLayoutManager::StartDragging(WmWindow* panel) { |