OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "ash/common/login_status.h" | 8 #include "ash/common/login_status.h" |
9 #include "ash/common/system/date/date_default_view.h" | |
10 #include "ash/common/system/date/tray_date.h" | |
11 #include "ash/common/system/tiles/tiles_default_view.h" | 9 #include "ash/common/system/tiles/tiles_default_view.h" |
12 #include "ash/common/system/tiles/tray_tiles.h" | 10 #include "ash/common/system/tiles/tray_tiles.h" |
13 #include "ash/common/system/tray/system_tray.h" | 11 #include "ash/common/system/tray/system_tray.h" |
14 #include "ash/shell.h" | 12 #include "ash/shell.h" |
15 #include "ash/strings/grit/ash_strings.h" | 13 #include "ash/strings/grit/ash_strings.h" |
16 #include "base/command_line.h" | 14 #include "base/command_line.h" |
17 #include "base/location.h" | 15 #include "base/location.h" |
18 #include "base/macros.h" | 16 #include "base/macros.h" |
19 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
20 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 PrepareAndRunScript("restart-header-bar-item", false); | 333 PrepareAndRunScript("restart-header-bar-item", false); |
336 PrepareAndRunScript("shutdown-header-bar-item", true); | 334 PrepareAndRunScript("shutdown-header-bar-item", true); |
337 | 335 |
338 UpdateRebootOnShutdownPolicy(false); | 336 UpdateRebootOnShutdownPolicy(false); |
339 RefreshDevicePolicy(); | 337 RefreshDevicePolicy(); |
340 PrepareAndRunScript("restart-header-bar-item", true); | 338 PrepareAndRunScript("restart-header-bar-item", true); |
341 PrepareAndRunScript("shutdown-header-bar-item", false); | 339 PrepareAndRunScript("shutdown-header-bar-item", false); |
342 } | 340 } |
343 | 341 |
344 } // namespace chromeos | 342 } // namespace chromeos |
OLD | NEW |