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 3 // found in the LICENSE file. 4 5 #include "chrome/browser/sync/glue/theme_data_type_controller.h" 6 7 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" 9 #include "content/public/browser/browser_thread.h" 10 #include "extensions/browser/extension_system.h" 11 12 using content::BrowserThread; 13 14 namespace browser_sync { 15 ThemeDataTypeController(sync_driver::SyncApiComponentFactory * sync_factory,Profile * profile)16ThemeDataTypeController::ThemeDataTypeController( 17 sync_driver::SyncApiComponentFactory* sync_factory, 18 Profile* profile) 19 : UIDataTypeController( 20 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 21 base::Bind(&ChromeReportUnrecoverableError), 22 syncer::THEMES, 23 sync_factory), 24 profile_(profile) { 25 } 26 ~ThemeDataTypeController()27ThemeDataTypeController::~ThemeDataTypeController() {} 28 StartModels()29bool ThemeDataTypeController::StartModels() { 30 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true); 31 return true; 32 } 33 34 } // namespace browser_sync 35