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

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Master merge; moved class declaration Created 8 years, 5 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
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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 #include "chrome/browser/extensions/app_notification_manager.h" 7 #include "chrome/browser/extensions/app_notification_manager.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_system.h" 9 #include "chrome/browser/extensions/extension_system.h"
10 #include "chrome/browser/extensions/extension_system_factory.h" 10 #include "chrome/browser/extensions/extension_system_factory.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 using browser_sync::TypedUrlModelAssociator; 81 using browser_sync::TypedUrlModelAssociator;
82 using browser_sync::UIDataTypeController; 82 using browser_sync::UIDataTypeController;
83 using browser_sync::DataTypeErrorHandler; 83 using browser_sync::DataTypeErrorHandler;
84 using content::BrowserThread; 84 using content::BrowserThread;
85 85
86 ProfileSyncComponentsFactoryImpl::ProfileSyncComponentsFactoryImpl( 86 ProfileSyncComponentsFactoryImpl::ProfileSyncComponentsFactoryImpl(
87 Profile* profile, CommandLine* command_line) 87 Profile* profile, CommandLine* command_line)
88 : profile_(profile), 88 : profile_(profile),
89 command_line_(command_line), 89 command_line_(command_line),
90 extension_system_( 90 extension_system_(
91 ExtensionSystemFactory::GetForProfile(profile)), 91 extensions::ExtensionSystemFactory::GetForProfile(profile)),
92 web_data_service_(WebDataServiceFactory::GetForProfile( 92 web_data_service_(WebDataServiceFactory::GetForProfile(
93 profile_, Profile::IMPLICIT_ACCESS)) { 93 profile_, Profile::IMPLICIT_ACCESS)) {
94 } 94 }
95 95
96 ProfileSyncComponentsFactoryImpl::~ProfileSyncComponentsFactoryImpl() { 96 ProfileSyncComponentsFactoryImpl::~ProfileSyncComponentsFactoryImpl() {
97 } 97 }
98 98
99 void ProfileSyncComponentsFactoryImpl::RegisterDataTypes( 99 void ProfileSyncComponentsFactoryImpl::RegisterDataTypes(
100 ProfileSyncService* pss) { 100 ProfileSyncService* pss) {
101 // App sync is enabled by default. Register unless explicitly 101 // App sync is enabled by default. Register unless explicitly
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 ProfileSyncComponentsFactory::SyncComponents 338 ProfileSyncComponentsFactory::SyncComponents
339 ProfileSyncComponentsFactoryImpl::CreateSessionSyncComponents( 339 ProfileSyncComponentsFactoryImpl::CreateSessionSyncComponents(
340 ProfileSyncService* profile_sync_service, 340 ProfileSyncService* profile_sync_service,
341 DataTypeErrorHandler* error_handler) { 341 DataTypeErrorHandler* error_handler) {
342 SessionModelAssociator* model_associator = 342 SessionModelAssociator* model_associator =
343 new SessionModelAssociator(profile_sync_service, error_handler); 343 new SessionModelAssociator(profile_sync_service, error_handler);
344 SessionChangeProcessor* change_processor = 344 SessionChangeProcessor* change_processor =
345 new SessionChangeProcessor(error_handler, model_associator); 345 new SessionChangeProcessor(error_handler, model_associator);
346 return SyncComponents(model_associator, change_processor); 346 return SyncComponents(model_associator, change_processor);
347 } 347 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl.h ('k') | chrome/browser/sync/profile_sync_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698