| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 void SystemTrayDelegateCommon::ShowSupervisedUserInfo() { | 146 void SystemTrayDelegateCommon::ShowSupervisedUserInfo() { |
| 147 } | 147 } |
| 148 | 148 |
| 149 void SystemTrayDelegateCommon::ShowEnterpriseInfo() { | 149 void SystemTrayDelegateCommon::ShowEnterpriseInfo() { |
| 150 } | 150 } |
| 151 | 151 |
| 152 void SystemTrayDelegateCommon::ShowUserLogin() { | 152 void SystemTrayDelegateCommon::ShowUserLogin() { |
| 153 } | 153 } |
| 154 | 154 |
| 155 bool SystemTrayDelegateCommon::ShowSpringChargerReplacementDialog() { | |
| 156 return false; | |
| 157 } | |
| 158 | |
| 159 bool SystemTrayDelegateCommon::IsSpringChargerReplacementDialogVisible() { | |
| 160 return false; | |
| 161 } | |
| 162 | |
| 163 bool SystemTrayDelegateCommon::HasUserConfirmedSafeSpringCharger() { | |
| 164 return false; | |
| 165 } | |
| 166 | |
| 167 void SystemTrayDelegateCommon::ShutDown() { | 155 void SystemTrayDelegateCommon::ShutDown() { |
| 168 } | 156 } |
| 169 | 157 |
| 170 void SystemTrayDelegateCommon::SignOut() { | 158 void SystemTrayDelegateCommon::SignOut() { |
| 171 } | 159 } |
| 172 | 160 |
| 173 void SystemTrayDelegateCommon::RequestLockScreen() { | 161 void SystemTrayDelegateCommon::RequestLockScreen() { |
| 174 } | 162 } |
| 175 | 163 |
| 176 void SystemTrayDelegateCommon::RequestRestartForUpdate() { | 164 void SystemTrayDelegateCommon::RequestRestartForUpdate() { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 const content::NotificationSource& source, | 283 const content::NotificationSource& source, |
| 296 const content::NotificationDetails& details) { | 284 const content::NotificationDetails& details) { |
| 297 if (type == chrome::NOTIFICATION_UPGRADE_RECOMMENDED) { | 285 if (type == chrome::NOTIFICATION_UPGRADE_RECOMMENDED) { |
| 298 ash::UpdateInfo info; | 286 ash::UpdateInfo info; |
| 299 GetUpdateInfo(content::Source<UpgradeDetector>(source).ptr(), &info); | 287 GetUpdateInfo(content::Source<UpgradeDetector>(source).ptr(), &info); |
| 300 GetSystemTrayNotifier()->NotifyUpdateRecommended(info); | 288 GetSystemTrayNotifier()->NotifyUpdateRecommended(info); |
| 301 } else { | 289 } else { |
| 302 NOTREACHED(); | 290 NOTREACHED(); |
| 303 } | 291 } |
| 304 } | 292 } |
| OLD | NEW |