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

Unified Diff: ash/common/shelf/shelf_layout_manager.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/frame/header_view.cc ('k') | ash/common/shelf/shelf_locking_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_layout_manager.cc
diff --git a/ash/common/shelf/shelf_layout_manager.cc b/ash/common/shelf/shelf_layout_manager.cc
index 582cf3f98f8d888698a6ee29e6a88c6b71be15a9..35de24c20de2088de87458b55086224cbc0b5725 100644
--- a/ash/common/shelf/shelf_layout_manager.cc
+++ b/ash/common/shelf/shelf_layout_manager.cc
@@ -156,7 +156,7 @@ ShelfLayoutManager::ShelfLayoutManager(ShelfWidget* shelf_widget,
shelf_background_type_(SHELF_BACKGROUND_OVERLAP) {
DCHECK(shelf_widget_);
DCHECK(wm_shelf_);
- WmShell::Get()->AddShellObserver(this);
+ Shell::GetInstance()->AddShellObserver(this);
WmShell::Get()->AddLockStateObserver(this);
Shell::GetInstance()->activation_client()->AddObserver(this);
WmShell::Get()->session_controller()->AddSessionStateObserver(this);
@@ -170,7 +170,7 @@ ShelfLayoutManager::~ShelfLayoutManager() {
for (auto& observer : observers_)
observer.WillDeleteShelfLayoutManager();
- WmShell::Get()->RemoveShellObserver(this);
+ Shell::GetInstance()->RemoveShellObserver(this);
WmShell::Get()->RemoveLockStateObserver(this);
WmShell::Get()->session_controller()->RemoveSessionStateObserver(this);
}
« no previous file with comments | « ash/common/frame/header_view.cc ('k') | ash/common/shelf/shelf_locking_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698