OLD | NEW |
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/power/resume_observer.h" | 5 #include "chrome/browser/chromeos/power/resume_observer.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
8 #include "chrome/browser/extensions/system/system_api.h" | 7 #include "chrome/browser/extensions/system/system_api.h" |
| 8 #include "chromeos/dbus/dbus_thread_manager.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 ResumeObserver::ResumeObserver() { | 12 ResumeObserver::ResumeObserver() { |
13 DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(this); | 13 DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(this); |
14 } | 14 } |
15 | 15 |
16 ResumeObserver::~ResumeObserver() { | 16 ResumeObserver::~ResumeObserver() { |
17 DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(this); | 17 DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(this); |
18 } | 18 } |
19 | 19 |
20 void ResumeObserver::SystemResumed() { | 20 void ResumeObserver::SystemResumed() { |
21 extensions::DispatchWokeUpEvent(); | 21 extensions::DispatchWokeUpEvent(); |
22 } | 22 } |
23 | 23 |
24 } // namespace chromeos | 24 } // namespace chromeos |
OLD | NEW |