| 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/extensions/api/system_private/system_private_api.h" | 5 #include "chrome/browser/extensions/api/system_private/system_private_api.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/prefs/pref_service.h" | |
| 11 #include "base/values.h" | 10 #include "base/values.h" |
| 12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 13 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/extensions/event_router_forwarder.h" | 13 #include "chrome/browser/extensions/event_router_forwarder.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/common/extensions/api/system_private.h" | 15 #include "chrome/common/extensions/api/system_private.h" |
| 17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "components/prefs/pref_service.h" |
| 18 #include "google_apis/google_api_keys.h" | 18 #include "google_apis/google_api_keys.h" |
| 19 | 19 |
| 20 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
| 21 #include "chromeos/dbus/dbus_thread_manager.h" | 21 #include "chromeos/dbus/dbus_thread_manager.h" |
| 22 #include "chromeos/dbus/update_engine_client.h" | 22 #include "chromeos/dbus/update_engine_client.h" |
| 23 #else | 23 #else |
| 24 #include "chrome/browser/upgrade_detector.h" | 24 #include "chrome/browser/upgrade_detector.h" |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 DispatchEvent(extensions::events::SYSTEM_PRIVATE_ON_SCREEN_UNLOCKED, | 166 DispatchEvent(extensions::events::SYSTEM_PRIVATE_ON_SCREEN_UNLOCKED, |
| 167 system_private::OnScreenUnlocked::kEventName, NULL); | 167 system_private::OnScreenUnlocked::kEventName, NULL); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void DispatchWokeUpEvent() { | 170 void DispatchWokeUpEvent() { |
| 171 DispatchEvent(extensions::events::SYSTEM_PRIVATE_ON_WOKE_UP, | 171 DispatchEvent(extensions::events::SYSTEM_PRIVATE_ON_WOKE_UP, |
| 172 system_private::OnWokeUp::kEventName, NULL); | 172 system_private::OnWokeUp::kEventName, NULL); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace extensions | 175 } // namespace extensions |
| OLD | NEW |