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

Unified Diff: ash/common/wm_shell.cc

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: Restructure based on feedback Created 4 years, 3 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
Index: ash/common/wm_shell.cc
diff --git a/ash/common/wm_shell.cc b/ash/common/wm_shell.cc
index ff23fb22180d11e66848a40277edb767f96be958..896814630763089efc8180427228d0d68b2c828d 100644
--- a/ash/common/wm_shell.cc
+++ b/ash/common/wm_shell.cc
@@ -23,6 +23,7 @@
#include "ash/common/system/brightness_control_delegate.h"
#include "ash/common/system/keyboard_brightness_control_delegate.h"
#include "ash/common/system/toast/toast_manager.h"
+#include "ash/common/system/tray/system_tray_controller.h"
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/system_tray_notifier.h"
#include "ash/common/wallpaper/wallpaper_controller.h"
@@ -64,7 +65,8 @@ WmShell* WmShell::Get() {
return instance_;
}
-void WmShell::Initialize(const scoped_refptr<base::SequencedWorkerPool>& pool) {
+void WmShell::Initialize(const scoped_refptr<base::SequencedWorkerPool>& pool,
+ shell::Connector* connector) {
blocking_pool_ = pool;
// Some delegates access WmShell during their construction. Create them here
@@ -84,6 +86,7 @@ void WmShell::Initialize(const scoped_refptr<base::SequencedWorkerPool>& pool) {
new_window_delegate_.reset(delegate_->CreateNewWindowDelegate());
wallpaper_controller_.reset(new WallpaperController(blocking_pool_));
+ system_tray_controller_.reset(new SystemTrayController(connector));
}
void WmShell::Shutdown() {

Powered by Google App Engine
This is Rietveld 408576698