OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/power/suspend_observer.h" | 5 #include "chrome/browser/chromeos/power/suspend_observer.h" |
6 | 6 |
| 7 #include "base/prefs/pref_service.h" |
7 #include "chrome/browser/chromeos/login/user_manager.h" | 8 #include "chrome/browser/chromeos/login/user_manager.h" |
8 #include "chrome/browser/extensions/system/system_api.h" | 9 #include "chrome/browser/extensions/system/system_api.h" |
9 #include "chrome/browser/prefs/pref_service.h" | |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
13 #include "chromeos/dbus/dbus_thread_manager.h" | 13 #include "chromeos/dbus/dbus_thread_manager.h" |
14 #include "chromeos/display/output_configurator.h" | 14 #include "chromeos/display/output_configurator.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 SuspendObserver::SuspendObserver() | 18 SuspendObserver::SuspendObserver() |
19 : power_client_(DBusThreadManager::Get()->GetPowerManagerClient()), | 19 : power_client_(DBusThreadManager::Get()->GetPowerManagerClient()), |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 MessageLoop::current()->PostTask(FROM_HERE, screen_lock_callback_); | 56 MessageLoop::current()->PostTask(FROM_HERE, screen_lock_callback_); |
57 screen_lock_callback_.Reset(); | 57 screen_lock_callback_.Reset(); |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 void SuspendObserver::ScreenIsUnlocked() { | 61 void SuspendObserver::ScreenIsUnlocked() { |
62 screen_locked_ = false; | 62 screen_locked_ = false; |
63 } | 63 } |
64 | 64 |
65 } // namespace chromeos | 65 } // namespace chromeos |
OLD | NEW |