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.
5 #include "chrome/browser/sync/glue/extension_data_type_controller.h"
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"
12 namespace browser_sync {
14 ExtensionDataTypeController::ExtensionDataTypeController(
15 syncer::ModelType type,
16 ProfileSyncComponentsFactory* profile_sync_factory,
18 ProfileSyncService* sync_service)
19 : UIDataTypeController(type,
23 DCHECK(type == syncer::EXTENSIONS || type == syncer::APPS);
26 ExtensionDataTypeController::~ExtensionDataTypeController() {}
28 bool ExtensionDataTypeController::StartModels() {
29 extensions::ExtensionSystem::Get(profile_)
30 ->InitForRegularProfile(true, false);
34 } // namespace browser_sync