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) { |