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

Unified Diff: chrome/browser/sync/glue/extension_data_type_controller.cc

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase, address comments, remove TestMessageLoop. Created 4 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/extension_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/extension_data_type_controller.cc b/chrome/browser/sync/glue/extension_data_type_controller.cc
index f2af66d1049c0a6db2f7496551d2986f795da1ba..f6fbbbf70281a334e8137e540296fc7622be3fe8 100644
--- a/chrome/browser/sync/glue/extension_data_type_controller.cc
+++ b/chrome/browser/sync/glue/extension_data_type_controller.cc
@@ -15,21 +15,17 @@ namespace browser_sync {
ExtensionDataTypeController::ExtensionDataTypeController(
syncer::ModelType type,
- const base::Closure& error_callback,
+ const base::Closure& dump_stack,
sync_driver::SyncClient* sync_client,
Profile* profile)
- : UIDataTypeController(
- BrowserThread::GetTaskRunnerForThread(BrowserThread::UI),
- error_callback,
- type,
- sync_client),
- profile_(profile) {
+ : UIDataTypeController(type, dump_stack, sync_client), profile_(profile) {
DCHECK(type == syncer::EXTENSIONS || type == syncer::APPS);
}
ExtensionDataTypeController::~ExtensionDataTypeController() {}
bool ExtensionDataTypeController::StartModels() {
+ DCHECK(CalledOnValidThread());
extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698