Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: ash/shell/window_watcher.cc

Issue 11201002: Removes worskpace 1 code. Will rename next. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove constants and add back kDisableLoginAnimations Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/activation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/activation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698