| Index: ash/system/tray/system_tray_controller.cc
|
| diff --git a/ash/system/tray/system_tray_controller.cc b/ash/system/tray/system_tray_controller.cc
|
| index 5f3d07a08c30ca5d03089df12ab6e0671ea72e11..5c5ebe3a005a1605b2e0fa21a30185c9be582eb0 100644
|
| --- a/ash/system/tray/system_tray_controller.cc
|
| +++ b/ash/system/tray/system_tray_controller.cc
|
| @@ -45,6 +45,11 @@ void SystemTrayController::ShowDateSettings() {
|
| system_tray_client_->ShowDateSettings();
|
| }
|
|
|
| +void SystemTrayController::ShowAboutChromeOS() {
|
| + if (system_tray_client_)
|
| + system_tray_client_->ShowAboutChromeOS();
|
| +}
|
| +
|
| void SystemTrayController::ShowSetTimeDialog() {
|
| if (system_tray_client_)
|
| system_tray_client_->ShowSetTimeDialog();
|
| @@ -141,6 +146,11 @@ void SystemTrayController::RequestRestartForUpdate() {
|
| system_tray_client_->RequestRestartForUpdate();
|
| }
|
|
|
| +void SystemTrayController::RequestUpdateCheck() {
|
| + if (system_tray_client_)
|
| + system_tray_client_->RequestUpdateCheck();
|
| +}
|
| +
|
| void SystemTrayController::BindRequest(mojom::SystemTrayRequest request) {
|
| bindings_.AddBinding(this, std::move(request));
|
| }
|
| @@ -210,4 +220,15 @@ void SystemTrayController::ShowUpdateIcon(mojom::UpdateSeverity severity,
|
| }
|
| }
|
|
|
| +void SystemTrayController::ShowUpdateOverCellularAvailableIcon() {
|
| + // Show the icon on all displays.
|
| + for (WmWindow* root : ShellPort::Get()->GetAllRootWindows()) {
|
| + ash::SystemTray* tray = root->GetRootWindowController()->GetSystemTray();
|
| + // External monitors might not have a tray yet.
|
| + if (!tray)
|
| + continue;
|
| + tray->tray_update()->ShowUpdateOverCellularAvailableIcon();
|
| + }
|
| +}
|
| +
|
| } // namespace ash
|
|
|