| 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/system/date/date_default_view.h" | 9 #include "ash/common/system/date/date_default_view.h" |
| 9 #include "ash/common/system/date/tray_date.h" | 10 #include "ash/common/system/date/tray_date.h" |
| 10 #include "ash/common/system/tray/tray_popup_header_button.h" | 11 #include "ash/common/system/tray/tray_popup_header_button.h" |
| 11 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 12 #include "ash/strings/grit/ash_strings.h" | 13 #include "ash/strings/grit/ash_strings.h" |
| 13 #include "ash/system/tray/system_tray.h" | 14 #include "ash/system/tray/system_tray.h" |
| 14 #include "ash/system/user/login_status.h" | |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/location.h" | 16 #include "base/location.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
| 20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 21 #include "base/threading/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
| 22 #include "chrome/browser/chrome_notification_types.h" | 22 #include "chrome/browser/chrome_notification_types.h" |
| 23 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 23 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 24 #include "chrome/browser/chromeos/login/lock/screen_locker_tester.h" | 24 #include "chrome/browser/chromeos/login/lock/screen_locker_tester.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 PrepareAndRunScript("restart-header-bar-item", false); | 327 PrepareAndRunScript("restart-header-bar-item", false); |
| 328 PrepareAndRunScript("shutdown-header-bar-item", true); | 328 PrepareAndRunScript("shutdown-header-bar-item", true); |
| 329 | 329 |
| 330 UpdateRebootOnShutdownPolicy(false); | 330 UpdateRebootOnShutdownPolicy(false); |
| 331 RefreshDevicePolicy(); | 331 RefreshDevicePolicy(); |
| 332 PrepareAndRunScript("restart-header-bar-item", true); | 332 PrepareAndRunScript("restart-header-bar-item", true); |
| 333 PrepareAndRunScript("shutdown-header-bar-item", false); | 333 PrepareAndRunScript("shutdown-header-bar-item", false); |
| 334 } | 334 } |
| 335 | 335 |
| 336 } // namespace chromeos | 336 } // namespace chromeos |
| OLD | NEW |