| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/settings/settings_backend.h" | 5 #include "chrome/browser/extensions/api/storage/settings_backend.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/extensions/settings/settings_sync_processor.h" | 9 #include "chrome/browser/extensions/api/storage/settings_sync_processor.h" |
| 10 #include "chrome/browser/extensions/settings/settings_sync_util.h" | 10 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" |
| 11 #include "chrome/browser/extensions/settings/syncable_settings_storage.h" | 11 #include "chrome/browser/extensions/api/storage/syncable_settings_storage.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "sync/api/sync_error_factory.h" | 13 #include "sync/api/sync_error_factory.h" |
| 14 | 14 |
| 15 using content::BrowserThread; | 15 using content::BrowserThread; |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 SettingsBackend::SettingsBackend( | 19 SettingsBackend::SettingsBackend( |
| 20 const scoped_refptr<SettingsStorageFactory>& storage_factory, | 20 const scoped_refptr<SettingsStorageFactory>& storage_factory, |
| 21 const FilePath& base_path, | 21 const FilePath& base_path, |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 scoped_ptr<SettingsSyncProcessor> SettingsBackend::CreateSettingsSyncProcessor( | 276 scoped_ptr<SettingsSyncProcessor> SettingsBackend::CreateSettingsSyncProcessor( |
| 277 const std::string& extension_id) const { | 277 const std::string& extension_id) const { |
| 278 CHECK(sync_processor_.get()); | 278 CHECK(sync_processor_.get()); |
| 279 return scoped_ptr<SettingsSyncProcessor>( | 279 return scoped_ptr<SettingsSyncProcessor>( |
| 280 new SettingsSyncProcessor(extension_id, | 280 new SettingsSyncProcessor(extension_id, |
| 281 sync_type_, | 281 sync_type_, |
| 282 sync_processor_.get())); | 282 sync_processor_.get())); |
| 283 } | 283 } |
| 284 | 284 |
| 285 } // namespace extensions | 285 } // namespace extensions |
| OLD | NEW |