This source file includes following definitions.
- StartModels
#include "chrome/browser/sync/glue/theme_data_type_controller.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/extension_system.h"
using content::BrowserThread;
namespace browser_sync {
ThemeDataTypeController::ThemeDataTypeController(
ProfileSyncComponentsFactory* profile_sync_factory,
Profile* profile,
ProfileSyncService* sync_service)
: UIDataTypeController(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
base::Bind(&ChromeReportUnrecoverableError),
syncer::THEMES,
profile_sync_factory,
profile,
sync_service) {
}
ThemeDataTypeController::~ThemeDataTypeController() {}
bool ThemeDataTypeController::StartModels() {
extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true);
return true;
}
}