| Index: ash/shell/window_watcher.cc
|
| diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
|
| index d37e8c85b7250a9b07164216582528237c0ceff9..a85d8f6c282d4eb632cf3e438209cdf27da1daa5 100644
|
| --- a/ash/shell/window_watcher.cc
|
| +++ b/ash/shell/window_watcher.cc
|
| @@ -8,7 +8,6 @@
|
| #include "ash/launcher/launcher_model.h"
|
| #include "ash/shell.h"
|
| #include "ash/shell_window_ids.h"
|
| -#include "ash/wm/workspace_controller.h"
|
| #include "ui/aura/window.h"
|
|
|
| namespace ash {
|
| @@ -48,16 +47,11 @@ WindowWatcher::WindowWatcher()
|
| panel_container_(ash::Shell::GetContainer(
|
| Shell::GetPrimaryRootWindow(),
|
| internal::kShellWindowId_PanelContainer)) {
|
| - if (internal::WorkspaceController::IsWorkspace2Enabled())
|
| - workspace_window_watcher_.reset(new WorkspaceWindowWatcher(this));
|
| - else
|
| - window_->AddObserver(this);
|
| + workspace_window_watcher_.reset(new WorkspaceWindowWatcher(this));
|
| panel_container_->AddObserver(this);
|
| }
|
|
|
| WindowWatcher::~WindowWatcher() {
|
| - if (!internal::WorkspaceController::IsWorkspace2Enabled())
|
| - window_->RemoveObserver(this);
|
| panel_container_->RemoveObserver(this);
|
| }
|
|
|
|
|