| 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/system/system_api.h" | 5 #include "chrome/browser/extensions/system/system_api.h" |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/extensions/extension_event_router.h" | 9 #include "chrome/browser/extensions/extension_event_router.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
| 13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 | 14 |
| 15 #if defined(OS_CHROMEOS) | 15 #if defined(OS_CHROMEOS) |
| 16 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 16 #include "chromeos/dbus/dbus_thread_manager.h" |
| 17 #include "chrome/browser/chromeos/dbus/update_engine_client.h" | 17 #include "chromeos/dbus/update_engine_client.h" |
| 18 #else | 18 #else |
| 19 #include "chrome/browser/upgrade_detector.h" | 19 #include "chrome/browser/upgrade_detector.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // Maps prefs::kIncognitoModeAvailability values (0 = enabled, ...) | 24 // Maps prefs::kIncognitoModeAvailability values (0 = enabled, ...) |
| 25 // to strings exposed to extensions. | 25 // to strings exposed to extensions. |
| 26 const char* kIncognitoModeAvailabilityStrings[] = { | 26 const char* kIncognitoModeAvailabilityStrings[] = { |
| 27 "enabled", | 27 "enabled", |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 ListValue args; | 161 ListValue args; |
| 162 DispatchEvent(kOnScreenUnlocked, args); | 162 DispatchEvent(kOnScreenUnlocked, args); |
| 163 } | 163 } |
| 164 | 164 |
| 165 void DispatchWokeUpEvent() { | 165 void DispatchWokeUpEvent() { |
| 166 ListValue args; | 166 ListValue args; |
| 167 DispatchEvent(kOnWokeUp, args); | 167 DispatchEvent(kOnWokeUp, args); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace extensions | 170 } // namespace extensions |
| OLD | NEW |