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

Side by Side Diff: ash/common/system/tray/system_tray_controller.cc

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Display "Restart to update" dialog to Chrome OS users. Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/system/tray/system_tray_controller.h" 5 #include "ash/common/system/tray/system_tray_controller.h"
6 6
7 #include "ash/common/system/tray/system_tray_notifier.h" 7 #include "ash/common/system/tray/system_tray_notifier.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void SystemTrayController::ShowProxySettings() { 103 void SystemTrayController::ShowProxySettings() {
104 if (system_tray_client_) 104 if (system_tray_client_)
105 system_tray_client_->ShowProxySettings(); 105 system_tray_client_->ShowProxySettings();
106 } 106 }
107 107
108 void SystemTrayController::SignOut() { 108 void SystemTrayController::SignOut() {
109 if (system_tray_client_) 109 if (system_tray_client_)
110 system_tray_client_->SignOut(); 110 system_tray_client_->SignOut();
111 } 111 }
112 112
113 void SystemTrayController::RequestRestartForUpdate() { 113 void SystemTrayController::RequestRestartForUpdate(bool always_reboot) {
114 if (system_tray_client_) 114 if (system_tray_client_)
115 system_tray_client_->RequestRestartForUpdate(); 115 system_tray_client_->RequestRestartForUpdate(always_reboot);
116 } 116 }
117 117
118 void SystemTrayController::BindRequest(mojom::SystemTrayRequest request) { 118 void SystemTrayController::BindRequest(mojom::SystemTrayRequest request) {
119 bindings_.AddBinding(this, std::move(request)); 119 bindings_.AddBinding(this, std::move(request));
120 } 120 }
121 121
122 void SystemTrayController::SetClient(mojom::SystemTrayClientPtr client) { 122 void SystemTrayController::SetClient(mojom::SystemTrayClientPtr client) {
123 system_tray_client_ = std::move(client); 123 system_tray_client_ = std::move(client);
124 } 124 }
125 125
126 void SystemTrayController::SetUse24HourClock(bool use_24_hour) { 126 void SystemTrayController::SetUse24HourClock(bool use_24_hour) {
127 hour_clock_type_ = use_24_hour ? base::k24HourClock : base::k12HourClock; 127 hour_clock_type_ = use_24_hour ? base::k24HourClock : base::k12HourClock;
128 WmShell::Get()->system_tray_notifier()->NotifyDateFormatChanged(); 128 WmShell::Get()->system_tray_notifier()->NotifyDateFormatChanged();
129 } 129 }
130 130
131 } // namespace ash 131 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698