Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698