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

Unified Diff: ash/common/system/chromeos/session/logout_button_tray.cc

Issue 2505783002: chromeos: Migrate SignOut and RequestRestartForUpdate to mojo interface (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | ash/common/system/tray/system_tray_controller.h » ('j') | ash/common/wm_shell.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/session/logout_button_tray.cc
diff --git a/ash/common/system/chromeos/session/logout_button_tray.cc b/ash/common/system/chromeos/session/logout_button_tray.cc
index 25fdb936e121ec2c25ee09547726525b73728a53..5a49becf515d8a57e87f69190ba9b3703d25319c 100644
--- a/ash/common/system/chromeos/session/logout_button_tray.cc
+++ b/ash/common/system/chromeos/session/logout_button_tray.cc
@@ -9,7 +9,7 @@
#include "ash/common/material_design/material_design_controller.h"
#include "ash/common/system/chromeos/session/logout_confirmation_controller.h"
-#include "ash/common/system/tray/system_tray_delegate.h"
+#include "ash/common/system/tray/system_tray_controller.h"
#include "ash/common/system/tray/system_tray_notifier.h"
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_utils.h"
@@ -155,7 +155,7 @@ void LogoutButtonTray::ButtonPressed(views::Button* sender,
if (dialog_duration_ <= base::TimeDelta()) {
// Sign out immediately if |dialog_duration_| is non-positive.
- WmShell::Get()->system_tray_delegate()->SignOut();
+ WmShell::Get()->system_tray_controller()->SignOut();
} else if (WmShell::Get()->logout_confirmation_controller()) {
WmShell::Get()->logout_confirmation_controller()->ConfirmLogout(
base::TimeTicks::Now() + dialog_duration_);
« no previous file with comments | « no previous file | ash/common/system/tray/system_tray_controller.h » ('j') | ash/common/wm_shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698