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

Unified Diff: ash/common/system/tray/system_tray_controller.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
Index: ash/common/system/tray/system_tray_controller.cc
diff --git a/ash/common/system/tray/system_tray_controller.cc b/ash/common/system/tray/system_tray_controller.cc
index a097bc77a06e24c47a656699072489e489a6eebc..02fe055d6041afbb53cf3df7b182c268e2c2348e 100644
--- a/ash/common/system/tray/system_tray_controller.cc
+++ b/ash/common/system/tray/system_tray_controller.cc
@@ -103,6 +103,16 @@ void SystemTrayController::ShowProxySettings() {
system_tray_client_->ShowProxySettings();
}
+void SystemTrayController::SignOut() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->SignOut();
+}
+
+void SystemTrayController::RequestRestartForUpdate() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->RequestRestartForUpdate();
+}
+
void SystemTrayController::BindRequest(mojom::SystemTrayRequest request) {
bindings_.AddBinding(this, std::move(request));
}

Powered by Google App Engine
This is Rietveld 408576698