OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/storage/sync_storage_backend.h" | 5 #include "chrome/browser/extensions/api/storage/sync_storage_backend.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "chrome/browser/extensions/api/storage/settings_sync_processor.h" | 11 #include "chrome/browser/extensions/api/storage/settings_sync_processor.h" |
12 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" | 12 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" |
13 #include "chrome/browser/extensions/api/storage/syncable_settings_storage.h" | 13 #include "chrome/browser/extensions/api/storage/syncable_settings_storage.h" |
| 14 #include "components/sync/api/sync_error_factory.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
15 #include "sync/api/sync_error_factory.h" | |
16 | 16 |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 void AddAllSyncData(const std::string& extension_id, | 23 void AddAllSyncData(const std::string& extension_id, |
24 const base::DictionaryValue& src, | 24 const base::DictionaryValue& src, |
25 syncer::ModelType type, | 25 syncer::ModelType type, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 275 |
276 std::unique_ptr<SettingsSyncProcessor> | 276 std::unique_ptr<SettingsSyncProcessor> |
277 SyncStorageBackend::CreateSettingsSyncProcessor( | 277 SyncStorageBackend::CreateSettingsSyncProcessor( |
278 const std::string& extension_id) const { | 278 const std::string& extension_id) const { |
279 CHECK(sync_processor_.get()); | 279 CHECK(sync_processor_.get()); |
280 return std::unique_ptr<SettingsSyncProcessor>(new SettingsSyncProcessor( | 280 return std::unique_ptr<SettingsSyncProcessor>(new SettingsSyncProcessor( |
281 extension_id, sync_type_, sync_processor_.get())); | 281 extension_id, sync_type_, sync_processor_.get())); |
282 } | 282 } |
283 | 283 |
284 } // namespace extensions | 284 } // namespace extensions |
OLD | NEW |