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

Side by Side Diff: chrome/browser/chromeos/system/ash_system_tray_delegate.cc

Issue 10409022: Move application lifetime functionality off BrowserList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/system/ash_system_tray_delegate.h" 5 #include "chrome/browser/chromeos/system/ash_system_tray_delegate.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/system/audio/audio_observer.h" 9 #include "ash/system/audio/audio_observer.h"
10 #include "ash/system/bluetooth/bluetooth_observer.h" 10 #include "ash/system/bluetooth/bluetooth_observer.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "chrome/browser/chromeos/login/login_display_host.h" 42 #include "chrome/browser/chromeos/login/login_display_host.h"
43 #include "chrome/browser/chromeos/login/message_bubble.h" 43 #include "chrome/browser/chromeos/login/message_bubble.h"
44 #include "chrome/browser/chromeos/login/user.h" 44 #include "chrome/browser/chromeos/login/user.h"
45 #include "chrome/browser/chromeos/login/user_manager.h" 45 #include "chrome/browser/chromeos/login/user_manager.h"
46 #include "chrome/browser/chromeos/mobile_config.h" 46 #include "chrome/browser/chromeos/mobile_config.h"
47 #include "chrome/browser/chromeos/status/data_promo_notification.h" 47 #include "chrome/browser/chromeos/status/data_promo_notification.h"
48 #include "chrome/browser/chromeos/status/network_menu.h" 48 #include "chrome/browser/chromeos/status/network_menu.h"
49 #include "chrome/browser/chromeos/status/network_menu_icon.h" 49 #include "chrome/browser/chromeos/status/network_menu_icon.h"
50 #include "chrome/browser/chromeos/system/timezone_settings.h" 50 #include "chrome/browser/chromeos/system/timezone_settings.h"
51 #include "chrome/browser/chromeos/system_key_event_listener.h" 51 #include "chrome/browser/chromeos/system_key_event_listener.h"
52 #include "chrome/browser/lifetime/application_lifetime.h"
52 #include "chrome/browser/prefs/pref_service.h" 53 #include "chrome/browser/prefs/pref_service.h"
53 #include "chrome/browser/profiles/profile_manager.h" 54 #include "chrome/browser/profiles/profile_manager.h"
54 #include "chrome/browser/ui/browser.h" 55 #include "chrome/browser/ui/browser.h"
55 #include "chrome/browser/ui/browser_finder.h" 56 #include "chrome/browser/ui/browser_finder.h"
56 #include "chrome/browser/ui/browser_list.h"
57 #include "chrome/browser/upgrade_detector.h" 57 #include "chrome/browser/upgrade_detector.h"
58 #include "chrome/common/chrome_notification_types.h" 58 #include "chrome/common/chrome_notification_types.h"
59 #include "chrome/common/pref_names.h" 59 #include "chrome/common/pref_names.h"
60 #include "chrome/common/url_constants.h" 60 #include "chrome/common/url_constants.h"
61 #include "chromeos/dbus/dbus_thread_manager.h" 61 #include "chromeos/dbus/dbus_thread_manager.h"
62 #include "chromeos/dbus/power_manager_client.h" 62 #include "chromeos/dbus/power_manager_client.h"
63 #include "content/public/browser/browser_thread.h" 63 #include "content/public/browser/browser_thread.h"
64 #include "content/public/browser/notification_observer.h" 64 #include "content/public/browser/notification_observer.h"
65 #include "content/public/browser/notification_service.h" 65 #include "content/public/browser/notification_service.h"
66 #include "content/public/browser/user_metrics.h" 66 #include "content/public/browser/user_metrics.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 359
360 virtual void SetEnableSpokenFeedback(bool enable) OVERRIDE { 360 virtual void SetEnableSpokenFeedback(bool enable) OVERRIDE {
361 chromeos::accessibility::EnableSpokenFeedback(enable, NULL); 361 chromeos::accessibility::EnableSpokenFeedback(enable, NULL);
362 } 362 }
363 363
364 virtual void ShutDown() OVERRIDE { 364 virtual void ShutDown() OVERRIDE {
365 DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown(); 365 DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown();
366 } 366 }
367 367
368 virtual void SignOut() OVERRIDE { 368 virtual void SignOut() OVERRIDE {
369 BrowserList::AttemptUserExit(); 369 browser::AttemptUserExit();
370 } 370 }
371 371
372 virtual void RequestLockScreen() OVERRIDE { 372 virtual void RequestLockScreen() OVERRIDE {
373 DBusThreadManager::Get()->GetPowerManagerClient()-> 373 DBusThreadManager::Get()->GetPowerManagerClient()->
374 NotifyScreenLockRequested(); 374 NotifyScreenLockRequested();
375 } 375 }
376 376
377 virtual void RequestRestart() OVERRIDE { 377 virtual void RequestRestart() OVERRIDE {
378 DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart(); 378 DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart();
379 } 379 }
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegate); 1209 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegate);
1210 }; 1210 };
1211 1211
1212 } // namespace 1212 } // namespace
1213 1213
1214 ash::SystemTrayDelegate* CreateSystemTrayDelegate(ash::SystemTray* tray) { 1214 ash::SystemTrayDelegate* CreateSystemTrayDelegate(ash::SystemTray* tray) {
1215 return new chromeos::SystemTrayDelegate(tray); 1215 return new chromeos::SystemTrayDelegate(tray);
1216 } 1216 }
1217 1217
1218 } // namespace chromeos 1218 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698