| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/ui/ash/system_tray_delegate_common.h" | 5 #include "chrome/browser/ui/ash/system_tray_delegate_common.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
| 9 #include "ash/system/tray/system_tray.h" | 9 #include "ash/system/tray/system_tray.h" |
| 10 #include "ash/system/tray/system_tray_notifier.h" | 10 #include "ash/system/tray/system_tray_notifier.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 void SystemTrayDelegateCommon::ShowSupervisedUserInfo() { | 150 void SystemTrayDelegateCommon::ShowSupervisedUserInfo() { |
| 151 } | 151 } |
| 152 | 152 |
| 153 void SystemTrayDelegateCommon::ShowEnterpriseInfo() { | 153 void SystemTrayDelegateCommon::ShowEnterpriseInfo() { |
| 154 } | 154 } |
| 155 | 155 |
| 156 void SystemTrayDelegateCommon::ShowUserLogin() { | 156 void SystemTrayDelegateCommon::ShowUserLogin() { |
| 157 } | 157 } |
| 158 | 158 |
| 159 void SystemTrayDelegateCommon::ShutDown() { | |
| 160 } | |
| 161 | |
| 162 void SystemTrayDelegateCommon::SignOut() { | 159 void SystemTrayDelegateCommon::SignOut() { |
| 163 } | 160 } |
| 164 | 161 |
| 165 void SystemTrayDelegateCommon::RequestLockScreen() { | 162 void SystemTrayDelegateCommon::RequestLockScreen() { |
| 166 } | 163 } |
| 167 | 164 |
| 168 void SystemTrayDelegateCommon::RequestRestartForUpdate() { | 165 void SystemTrayDelegateCommon::RequestRestartForUpdate() { |
| 169 chrome::AttemptRestart(); | 166 chrome::AttemptRestart(); |
| 170 } | 167 } |
| 171 | 168 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 const content::NotificationSource& source, | 284 const content::NotificationSource& source, |
| 288 const content::NotificationDetails& details) { | 285 const content::NotificationDetails& details) { |
| 289 if (type == chrome::NOTIFICATION_UPGRADE_RECOMMENDED) { | 286 if (type == chrome::NOTIFICATION_UPGRADE_RECOMMENDED) { |
| 290 ash::UpdateInfo info; | 287 ash::UpdateInfo info; |
| 291 GetUpdateInfo(content::Source<UpgradeDetector>(source).ptr(), &info); | 288 GetUpdateInfo(content::Source<UpgradeDetector>(source).ptr(), &info); |
| 292 GetSystemTrayNotifier()->NotifyUpdateRecommended(info); | 289 GetSystemTrayNotifier()->NotifyUpdateRecommended(info); |
| 293 } else { | 290 } else { |
| 294 NOTREACHED(); | 291 NOTREACHED(); |
| 295 } | 292 } |
| 296 } | 293 } |
| OLD | NEW |