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

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

Issue 10829019: [sync] Refactor how default sync datatypes are set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Registering extension prefs and using standard constructor Created 8 years, 4 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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #endif 57 #endif
58 virtual SyncComponents CreateTypedUrlSyncComponents( 58 virtual SyncComponents CreateTypedUrlSyncComponents(
59 ProfileSyncService* profile_sync_service, 59 ProfileSyncService* profile_sync_service,
60 history::HistoryBackend* history_backend, 60 history::HistoryBackend* history_backend,
61 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE; 61 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE;
62 virtual SyncComponents CreateSessionSyncComponents( 62 virtual SyncComponents CreateSessionSyncComponents(
63 ProfileSyncService* profile_sync_service, 63 ProfileSyncService* profile_sync_service,
64 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE; 64 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE;
65 65
66 private: 66 private:
67 // Register data types which are enabled on desktop platforms only.
68 void RegisterDesktopDataTypes(ProfileSyncService* pss);
69 // Register data types which are enabled on both desktop and mobile.
70 void RegisterCommonDataTypes(ProfileSyncService* pss);
71
67 Profile* profile_; 72 Profile* profile_;
68 CommandLine* command_line_; 73 CommandLine* command_line_;
69 // Set on the UI thread (since extensions::ExtensionSystemFactory is 74 // Set on the UI thread (since extensions::ExtensionSystemFactory is
70 // non-threadsafe); accessed on both the UI and FILE threads in 75 // non-threadsafe); accessed on both the UI and FILE threads in
71 // GetSyncableServiceForType. 76 // GetSyncableServiceForType.
72 extensions::ExtensionSystem* extension_system_; 77 extensions::ExtensionSystem* extension_system_;
73 scoped_refptr<WebDataService> web_data_service_; 78 scoped_refptr<WebDataService> web_data_service_;
74 79
75 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); 80 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl);
76 }; 81 };
77 82
78 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 83 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698