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

Unified Diff: ash/common/shelf/wm_shelf.cc

Issue 2739763003: Moves maintaining ShellObservers back to Shell (Closed)
Patch Set: merge Created 3 years, 9 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/common/shelf/shelf_locking_manager.cc ('k') | ash/common/system/chromeos/brightness/tray_brightness.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/wm_shelf.cc
diff --git a/ash/common/shelf/wm_shelf.cc b/ash/common/shelf/wm_shelf.cc
index 2a06cc21baa5039b55009c07e6ae45d745dd18c5..ae9d565c3ae16e037376578e45cec228b8dbb07c 100644
--- a/ash/common/shelf/wm_shelf.cc
+++ b/ash/common/shelf/wm_shelf.cc
@@ -168,7 +168,8 @@ void WmShelf::SetAlignment(ShelfAlignment alignment) {
shelf_widget_->OnShelfAlignmentChanged();
shelf_layout_manager_->LayoutShelf();
WmShell::Get()->shelf_controller()->NotifyShelfAlignmentChanged(this);
- WmShell::Get()->NotifyShelfAlignmentChanged(GetWindow()->GetRootWindow());
+ Shell::GetInstance()->NotifyShelfAlignmentChanged(
+ GetWindow()->GetRootWindow());
}
bool WmShelf::IsHorizontalAlignment() const {
@@ -212,7 +213,7 @@ void WmShelf::SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide_behavior) {
auto_hide_behavior_ = auto_hide_behavior;
WmShell::Get()->shelf_controller()->NotifyShelfAutoHideBehaviorChanged(this);
- WmShell::Get()->NotifyShelfAutoHideBehaviorChanged(
+ Shell::GetInstance()->NotifyShelfAutoHideBehaviorChanged(
GetWindow()->GetRootWindow());
}
« no previous file with comments | « ash/common/shelf/shelf_locking_manager.cc ('k') | ash/common/system/chromeos/brightness/tray_brightness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698