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

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_common.cc

Issue 811283003: Clean-up of the system shutdown code paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alignment fixes, rebase Created 5 years, 11 months 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 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_common.h ('k') | chrome/browser/ui/webui/chromeos/login/shutdown_policy_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698