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

Unified Diff: ash/system/chromeos/tray_display.cc

Issue 2131823003: mash: Minor ash/common fixes for tray_display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/system/chromeos/tray_display.h ('k') | ash/system/chromeos/tray_display_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/tray_display.cc
diff --git a/ash/system/chromeos/tray_display.cc b/ash/system/chromeos/tray_display.cc
index 8bf2f602d99be57c9115f5c8d59962eff7ade0ca..36790db983ed1ae8bc8ca5137b5d27f8430c5f2c 100644
--- a/ash/system/chromeos/tray_display.cc
+++ b/ash/system/chromeos/tray_display.cc
@@ -18,7 +18,6 @@
#include "ash/common/wm_shell.h"
#include "ash/display/display_manager.h"
#include "ash/display/screen_orientation_controller_chromeos.h"
-#include "ash/display/window_tree_host_manager.h"
#include "ash/shell.h"
#include "ash/system/tray/system_tray.h"
#include "base/bind.h"
@@ -299,12 +298,12 @@ class DisplayView : public ActionableView {
TrayDisplay::TrayDisplay(SystemTray* system_tray)
: SystemTrayItem(system_tray), default_(NULL) {
- Shell::GetInstance()->window_tree_host_manager()->AddObserver(this);
+ WmShell::Get()->AddDisplayObserver(this);
UpdateDisplayInfo(NULL);
}
TrayDisplay::~TrayDisplay() {
- Shell::GetInstance()->window_tree_host_manager()->RemoveObserver(this);
+ WmShell::Get()->RemoveDisplayObserver(this);
}
void TrayDisplay::UpdateDisplayInfo(TrayDisplay::DisplayInfoMap* old_info) {
« no previous file with comments | « ash/system/chromeos/tray_display.h ('k') | ash/system/chromeos/tray_display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698