Clean-up of the system shutdown code paths
commit95c6bd1be7480704bb3eb16083bdc3d5f2959173
authorcschuet <cschuet@chromium.org>
Thu, 8 Jan 2015 11:32:17 +0000 (8 03:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 8 Jan 2015 11:33:25 +0000 (8 11:33 +0000)
tree31c3cba229b9cef1a13b3f1ad374388607d577ae
parentf00919fd7b4618d3d9522a04f7361d7cccd55a7b
Clean-up of the system shutdown code paths

As suggested by +stevenjb in issue 811033002, this CL cleans up the shutdown code paths by
(1) removing the ShutDown method from all system tray delegates
(2) and letting the UI code call directly into ash::Shell

Additionally the ShutdownPolicyObserver is moved to chrome/browser/settings and renamed to ShutdownPolicyHandler

Review URL: https://codereview.chromium.org/811283003

Cr-Commit-Position: refs/heads/master@{#310477}
16 files changed:
ash/system/date/date_default_view.cc
ash/system/tray/default_system_tray_delegate.cc
ash/system/tray/default_system_tray_delegate.h
ash/system/tray/system_tray_delegate.h
ash/test/test_system_tray_delegate.cc
ash/test/test_system_tray_delegate.h
chrome/browser/chromeos/settings/shutdown_policy_handler.cc [moved from chrome/browser/ui/webui/chromeos/login/shutdown_policy_observer.cc with 64% similarity]
chrome/browser/chromeos/settings/shutdown_policy_handler.h [moved from chrome/browser/ui/webui/chromeos/login/shutdown_policy_observer.h with 74% similarity]
chrome/browser/chromeos/settings/shutdown_policy_handler_unittest.cc [moved from chrome/browser/ui/webui/chromeos/login/shutdown_policy_observer_unittest.cc with 83% similarity]
chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
chrome/browser/ui/ash/system_tray_delegate_chromeos.h
chrome/browser/ui/ash/system_tray_delegate_common.cc
chrome/browser/ui/ash/system_tray_delegate_common.h
chrome/chrome_browser_chromeos.gypi
chrome/chrome_browser_ui.gypi
chrome/chrome_tests_unit.gypi