| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/extensions/api/signed_in_devices/signed_in_devices_mana
ger.h" | 5 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_mana
ger.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.
h" | 16 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.
h" |
| 17 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/sync/profile_sync_service_factory.h" | 19 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 20 #include "chrome/common/extensions/api/signed_in_devices.h" | 20 #include "chrome/common/extensions/api/signed_in_devices.h" |
| 21 #include "components/browser_sync/browser/profile_sync_service.h" | 21 #include "components/browser_sync/browser/profile_sync_service.h" |
| 22 #include "components/sync_driver/device_info.h" | 22 #include "components/sync/driver/device_info.h" |
| 23 #include "extensions/browser/event_router.h" | 23 #include "extensions/browser/event_router.h" |
| 24 #include "extensions/browser/extension_registry.h" | 24 #include "extensions/browser/extension_registry.h" |
| 25 #include "extensions/common/extension.h" | 25 #include "extensions/common/extension.h" |
| 26 | 26 |
| 27 using sync_driver::DeviceInfo; | 27 using sync_driver::DeviceInfo; |
| 28 namespace extensions { | 28 namespace extensions { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 void FillDeviceInfo(const DeviceInfo& device_info, | 31 void FillDeviceInfo(const DeviceInfo& device_info, |
| 32 api::signed_in_devices::DeviceInfo* api_device_info) { | 32 api::signed_in_devices::DeviceInfo* api_device_info) { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 157 } |
| 158 | 158 |
| 159 void SignedInDevicesManager::OnExtensionUnloaded( | 159 void SignedInDevicesManager::OnExtensionUnloaded( |
| 160 content::BrowserContext* browser_context, | 160 content::BrowserContext* browser_context, |
| 161 const Extension* extension, | 161 const Extension* extension, |
| 162 UnloadedExtensionInfo::Reason reason) { | 162 UnloadedExtensionInfo::Reason reason) { |
| 163 RemoveChangeObserverForExtension(extension->id()); | 163 RemoveChangeObserverForExtension(extension->id()); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace extensions | 166 } // namespace extensions |
| OLD | NEW |