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

Unified Diff: ash/mus/bridge/wm_shelf_mus.cc

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase again Created 4 years, 4 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/mus/bridge/wm_shelf_mus.h ('k') | ash/mus/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_shelf_mus.cc
diff --git a/ash/mus/bridge/wm_shelf_mus.cc b/ash/mus/bridge/wm_shelf_mus.cc
index 951ee63f196efa2978ceef27e5e05adf8ef9e1e1..0b03fcff97c8928fc6b9974b89897563e042dc48 100644
--- a/ash/mus/bridge/wm_shelf_mus.cc
+++ b/ash/mus/bridge/wm_shelf_mus.cc
@@ -4,8 +4,6 @@
#include "ash/mus/bridge/wm_shelf_mus.h"
-#include "ash/common/shelf/shelf.h"
-#include "ash/common/shelf/shelf_delegate.h"
#include "ash/common/shelf/shelf_widget.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm_root_window_controller.h"
@@ -22,20 +20,14 @@ WmShelfMus::WmShelfMus(WmRootWindowController* root_window_controller) {
shelf_widget_.reset(new ShelfWidget(
root->GetChildByShellWindowId(kShellWindowId_ShelfContainer),
root->GetChildByShellWindowId(kShellWindowId_StatusContainer), this));
- shelf_.reset(
- new Shelf(this, shelf_widget_->CreateShelfView(), shelf_widget_.get()));
- shelf_widget_->set_shelf(shelf_.get());
- // Must be initialized before the delegate is notified because the delegate
- // may try to access the WmShelf.
- SetShelf(shelf_.get());
- WmShell::Get()->shelf_delegate()->OnShelfCreated(this);
+ InitializeShelf();
WmShell::Get()->NotifyShelfCreatedForRootWindow(root);
shelf_widget_->PostCreateShelf();
}
WmShelfMus::~WmShelfMus() {
shelf_widget_.reset();
- WmShelf::ClearShelf();
+ ShutdownShelf();
}
void WmShelfMus::WillDeleteShelfLayoutManager() {
« no previous file with comments | « ash/mus/bridge/wm_shelf_mus.h ('k') | ash/mus/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698