OLD | NEW |
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 <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h" | 12 #include "chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/sync/profile_sync_service_factory.h" | 14 #include "chrome/browser/sync/profile_sync_service_factory.h" |
15 #include "chrome/common/extensions/api/signed_in_devices.h" | 15 #include "chrome/common/extensions/api/signed_in_devices.h" |
16 #include "components/browser_sync/browser/profile_sync_service.h" | 16 #include "components/browser_sync/browser/profile_sync_service.h" |
17 #include "components/sync_driver/device_info_tracker.h" | 17 #include "components/sync/driver/device_info_tracker.h" |
18 #include "components/sync_driver/local_device_info_provider.h" | 18 #include "components/sync/driver/local_device_info_provider.h" |
19 #include "extensions/browser/extension_prefs.h" | 19 #include "extensions/browser/extension_prefs.h" |
20 | 20 |
21 using base::DictionaryValue; | 21 using base::DictionaryValue; |
22 using sync_driver::DeviceInfo; | 22 using sync_driver::DeviceInfo; |
23 using sync_driver::DeviceInfoTracker; | 23 using sync_driver::DeviceInfoTracker; |
24 using sync_driver::LocalDeviceInfoProvider; | 24 using sync_driver::LocalDeviceInfoProvider; |
25 | 25 |
26 namespace extensions { | 26 namespace extensions { |
27 | 27 |
28 static const char kPrefStringForIdMapping[] = "id_mapping_dictioanry"; | 28 static const char kPrefStringForIdMapping[] = "id_mapping_dictioanry"; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 ++it) { | 141 ++it) { |
142 result->Append((*it)->ToValue()); | 142 result->Append((*it)->ToValue()); |
143 } | 143 } |
144 | 144 |
145 SetResult(std::move(result)); | 145 SetResult(std::move(result)); |
146 return true; | 146 return true; |
147 } | 147 } |
148 | 148 |
149 } // namespace extensions | 149 } // namespace extensions |
150 | 150 |
OLD | NEW |