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

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

Issue 2395523002: chromeos: Refactor system tray "show settings" commands to use mojo (Closed)
Patch Set: Created 4 years, 2 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/system/chromeos/screen_layout_observer.cc
diff --git a/ash/system/chromeos/screen_layout_observer.cc b/ash/system/chromeos/screen_layout_observer.cc
index 8511732b0b0dfeb9da66044dbf8ca9a3eede6bd8..85f8895b312b0e2915496213990844f261a3399f 100644
--- a/ash/system/chromeos/screen_layout_observer.cc
+++ b/ash/system/chromeos/screen_layout_observer.cc
@@ -12,6 +12,7 @@
#include "ash/common/system/chromeos/devicetype_utils.h"
#include "ash/common/system/system_notifier.h"
#include "ash/common/system/tray/fixed_sized_image_view.h"
+#include "ash/common/system/tray/system_tray_controller.h"
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_notification_view.h"
@@ -79,7 +80,7 @@ bool OpenSettings() {
case LoginStatus::KIOSK_APP:
SystemTrayDelegate* delegate = WmShell::Get()->system_tray_delegate();
if (delegate->ShouldShowSettings()) {
- delegate->ShowDisplaySettings();
+ WmShell::Get()->system_tray_controller()->ShowDisplaySettings();
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698