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

Unified Diff: ash/root_window_controller.cc

Issue 2000393003: ash: Reorder shutdown of ShelfLayoutManager and StatusAreaWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 68bbc74426e0029a37837c1bb102429d1182934d..11548a8c1b82aaecac4c3f0bddd2c12a8e08181a 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -519,13 +519,8 @@ void RootWindowController::CloseChildWindows() {
aura::Window* root_window = GetRootWindow();
aura::client::SetDragDropClient(root_window, NULL);
- // TODO(harrym): Remove when Status Area Widget is a child view.
- if (shelf_) {
- shelf_->ShutdownStatusAreaWidget();
-
- if (shelf_->shelf_layout_manager())
- shelf_->shelf_layout_manager()->PrepareForShutdown();
- }
+ if (shelf_)
+ shelf_->Shutdown();
// Close background widget first as it depends on tooltip.
wallpaper_controller_.reset();
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698