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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_api. h" 5 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api. h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h" 10 #include "chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "chrome/browser/sync/profile_sync_service_factory.h" 12 #include "chrome/browser/sync/profile_sync_service_factory.h"
14 #include "chrome/common/extensions/api/signed_in_devices.h" 13 #include "chrome/common/extensions/api/signed_in_devices.h"
14 #include "components/browser_sync/browser/profile_sync_service.h"
15 #include "components/sync_driver/device_info_tracker.h" 15 #include "components/sync_driver/device_info_tracker.h"
16 #include "components/sync_driver/local_device_info_provider.h" 16 #include "components/sync_driver/local_device_info_provider.h"
17 #include "extensions/browser/extension_prefs.h" 17 #include "extensions/browser/extension_prefs.h"
18 18
19 using base::DictionaryValue; 19 using base::DictionaryValue;
20 using sync_driver::DeviceInfo; 20 using sync_driver::DeviceInfo;
21 using sync_driver::DeviceInfoTracker; 21 using sync_driver::DeviceInfoTracker;
22 using sync_driver::LocalDeviceInfoProvider; 22 using sync_driver::LocalDeviceInfoProvider;
23 23
24 namespace extensions { 24 namespace extensions {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 ++it) { 139 ++it) {
140 result->Append((*it)->ToValue()); 140 result->Append((*it)->ToValue());
141 } 141 }
142 142
143 SetResult(result.release()); 143 SetResult(result.release());
144 return true; 144 return true;
145 } 145 }
146 146
147 } // namespace extensions 147 } // namespace extensions
148 148
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698