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

Unified Diff: ash/common/system/date/date_default_view.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/common/system/date/date_default_view.cc
diff --git a/ash/common/system/date/date_default_view.cc b/ash/common/system/date/date_default_view.cc
index 6c03a9697c408dfdea1f6f57b14db67fc88dd2d7..10079a60370e3ad41a681cf632c363be25e55901 100644
--- a/ash/common/system/date/date_default_view.cc
+++ b/ash/common/system/date/date_default_view.cc
@@ -10,6 +10,7 @@
#include "ash/common/system/date/date_view.h"
#include "ash/common/system/tray/special_popup_row.h"
#include "ash/common/system/tray/system_tray.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_popup_header_button.h"
@@ -153,7 +154,7 @@ void DateDefaultView::ButtonPressed(views::Button* sender,
SystemTrayDelegate* tray_delegate = shell->system_tray_delegate();
if (sender == help_button_) {
shell->RecordUserMetricsAction(UMA_TRAY_HELP);
- tray_delegate->ShowHelp();
+ shell->system_tray_controller()->ShowHelp();
} else if (sender == shutdown_button_) {
shell->RecordUserMetricsAction(UMA_TRAY_SHUT_DOWN);
tray_delegate->RequestShutdown();

Powered by Google App Engine
This is Rietveld 408576698