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

Unified Diff: ash/mus/root_window_controller.cc

Issue 2235493002: mash: Disable ash_sysui; begin removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Connect to chrome on mash session launch; add missing gn dep. 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/root_window_controller.h ('k') | ash/mus/shelf_layout_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/root_window_controller.cc
diff --git a/ash/mus/root_window_controller.cc b/ash/mus/root_window_controller.cc
index e864585dc18178120af653b0ea88066b925c6f02..a7866c24ae57c25f9028364709a1bb27c9699e29 100644
--- a/ash/mus/root_window_controller.cc
+++ b/ash/mus/root_window_controller.cc
@@ -164,17 +164,6 @@ WmWindowMus* RootWindowController::GetWindowByShellWindowId(int id) {
WmWindowMus::Get(root_)->GetChildByShellWindowId(id));
}
-ShelfLayoutManager* RootWindowController::GetShelfLayoutManager() {
- return static_cast<ShelfLayoutManager*>(
- layout_managers_[GetWindowForContainer(Container::USER_PRIVATE_SHELF)]
- .get());
-}
-
-StatusLayoutManager* RootWindowController::GetStatusLayoutManager() {
- return static_cast<StatusLayoutManager*>(
- layout_managers_[GetWindowForContainer(Container::STATUS)].get());
-}
-
gfx::Rect RootWindowController::CalculateDefaultBounds(
ui::Window* window) const {
if (window->HasSharedProperty(
@@ -206,13 +195,7 @@ void RootWindowController::OnShelfWindowAvailable() {
DockedWindowLayoutManager* docked_window_layout_manager =
DockedWindowLayoutManager::Get(WmWindowMus::Get(root_));
- // Following code expects the shelf to be called only once.
- // TODO(sky): this check is only necessary while we have shelf hosted in
- // sysui (as sysui can restart). Once that is fixed there should be a DCHECK
- // that the shelf hasn't been set.
- if (docked_window_layout_manager->shelf())
- return;
-
+ DCHECK(!docked_window_layout_manager->shelf());
docked_window_layout_manager->SetShelf(wm_shelf_.get());
PanelLayoutManager::Get(WmWindowMus::Get(root_))->SetShelf(wm_shelf_.get());
« no previous file with comments | « ash/mus/root_window_controller.h ('k') | ash/mus/shelf_layout_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698