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/sync/glue/extension_setting_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "components/sync/api/syncable_service.h" |
11 #include "components/sync_driver/generic_change_processor.h" | 12 #include "components/sync_driver/generic_change_processor.h" |
12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
13 #include "extensions/browser/extension_system.h" | 14 #include "extensions/browser/extension_system.h" |
14 #include "sync/api/syncable_service.h" | |
15 | 15 |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
17 | 17 |
18 namespace browser_sync { | 18 namespace browser_sync { |
19 | 19 |
20 ExtensionSettingDataTypeController::ExtensionSettingDataTypeController( | 20 ExtensionSettingDataTypeController::ExtensionSettingDataTypeController( |
21 syncer::ModelType type, | 21 syncer::ModelType type, |
22 const base::Closure& error_callback, | 22 const base::Closure& error_callback, |
23 sync_driver::SyncClient* sync_client, | 23 sync_driver::SyncClient* sync_client, |
24 Profile* profile) | 24 Profile* profile) |
(...skipping 25 matching lines...) Expand all Loading... |
50 return BrowserThread::PostTask(BrowserThread::FILE, from_here, task); | 50 return BrowserThread::PostTask(BrowserThread::FILE, from_here, task); |
51 } | 51 } |
52 | 52 |
53 bool ExtensionSettingDataTypeController::StartModels() { | 53 bool ExtensionSettingDataTypeController::StartModels() { |
54 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 54 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
55 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true); | 55 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true); |
56 return true; | 56 return true; |
57 } | 57 } |
58 | 58 |
59 } // namespace browser_sync | 59 } // namespace browser_sync |
OLD | NEW |