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/extension_data_type_controller.h" 6 7 #include "base/metrics/histogram.h" 8 #include "chrome/browser/extensions/extension_system.h" 9 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/sync/profile_sync_components_factory.h" 11 12 namespace browser_sync { 13 14 ExtensionDataTypeController::ExtensionDataTypeController( 15 syncer::ModelType type, 16 ProfileSyncComponentsFactory* profile_sync_factory, 17 Profile* profile, 18 ProfileSyncService* sync_service) 19 : UIDataTypeController(type, 20 profile_sync_factory, 21 profile, 22 sync_service) { 23 DCHECK(type == syncer::EXTENSIONS || type == syncer::APPS); 24 } 25 26 ExtensionDataTypeController::~ExtensionDataTypeController() {} 27 28 bool ExtensionDataTypeController::StartModels() { 29 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true); 30 return true; 31 } 32 33 } // namespace browser_sync 34