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

Side by Side Diff: chrome/browser/sync/glue/extension_setting_data_type_controller.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.h" 5 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_system.h"
11 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/sync/glue/generic_change_processor.h" 11 #include "chrome/browser/sync/glue/generic_change_processor.h"
13 #include "chrome/browser/sync/profile_sync_components_factory.h" 12 #include "chrome/browser/sync/profile_sync_components_factory.h"
14 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "extensions/browser/extension_system.h"
15 #include "sync/api/syncable_service.h" 15 #include "sync/api/syncable_service.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace browser_sync { 19 namespace browser_sync {
20 20
21 ExtensionSettingDataTypeController::ExtensionSettingDataTypeController( 21 ExtensionSettingDataTypeController::ExtensionSettingDataTypeController(
22 syncer::ModelType type, 22 syncer::ModelType type,
23 ProfileSyncComponentsFactory* profile_sync_factory, 23 ProfileSyncComponentsFactory* profile_sync_factory,
24 Profile* profile, 24 Profile* profile,
(...skipping 26 matching lines...) Expand all
51 return BrowserThread::PostTask(BrowserThread::FILE, from_here, task); 51 return BrowserThread::PostTask(BrowserThread::FILE, from_here, task);
52 } 52 }
53 53
54 bool ExtensionSettingDataTypeController::StartModels() { 54 bool ExtensionSettingDataTypeController::StartModels() {
55 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 55 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
56 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true); 56 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true);
57 return true; 57 return true;
58 } 58 }
59 59
60 } // namespace browser_sync 60 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/extension_data_type_controller.cc ('k') | chrome/browser/sync/glue/theme_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698