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

Unified Diff: ash/shell.cc

Issue 2098023002: mash: Migrate remaining tray observers and notify functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 6 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
« ash/shell.h ('K') | « ash/shell.h ('k') | ash/system/cast/tray_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 245e5d09df3eace427786bcba1b6adf319e46cdb..b937815618f4eae4f9f73089051278d3f513fd27 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -64,7 +64,6 @@
#include "ash/shell_init_params.h"
#include "ash/system/status_area_widget.h"
#include "ash/system/toast/toast_manager.h"
-#include "ash/system/tray/system_tray_notifier.h"
#include "ash/utility/screenshot_controller.h"
#include "ash/wm/ash_focus_rules.h"
#include "ash/wm/ash_native_cursor_manager.h"
@@ -746,10 +745,6 @@ Shell::~Shell() {
// so must be deleted before |focus_client_| (below).
shelf_delegate_.reset();
- // Destroy SystemTrayNotifier after destroying SystemTray as TrayItems
- // needs to remove observers from it.
- system_tray_notifier_.reset();
-
// These need a valid Shell instance to clean up properly, so explicitly
// delete them before invalidating the instance.
// Alphabetical. TODO(oshima): sort.
@@ -1053,9 +1048,6 @@ void Shell::Init(const ShellInitParams& init_params) {
shadow_controller_.reset(
new ::wm::ShadowController(activation_client_));
- // Create system_tray_notifier_ before the delegate.
- system_tray_notifier_.reset(new SystemTrayNotifier());
-
SystemTrayDelegate* system_tray_delegate =
delegate()->CreateSystemTrayDelegate();
DCHECK(system_tray_delegate);
« ash/shell.h ('K') | « ash/shell.h ('k') | ash/system/cast/tray_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698