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

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

Issue 1253953002: Componentize enhanced_bookmark_features.{h,cc}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert change in //chrome/common/DEPS that broke checkdeps Created 5 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
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/profile_sync_components_factory_impl.h"
6
5 #include "base/command_line.h" 7 #include "base/command_line.h"
6 #include "build/build_config.h" 8 #include "build/build_config.h"
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h"
9 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" 10 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
10 #include "chrome/browser/history/history_service_factory.h" 11 #include "chrome/browser/history/history_service_factory.h"
11 #include "chrome/browser/password_manager/password_store_factory.h" 12 #include "chrome/browser/password_manager/password_store_factory.h"
12 #include "chrome/browser/pref_service_flags_storage.h" 13 #include "chrome/browser/pref_service_flags_storage.h"
13 #include "chrome/browser/prefs/pref_model_associator.h" 14 #include "chrome/browser/prefs/pref_model_associator.h"
14 #include "chrome/browser/prefs/pref_service_syncable.h" 15 #include "chrome/browser/prefs/pref_service_syncable.h"
15 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/search_engines/template_url_service_factory.h" 17 #include "chrome/browser/search_engines/template_url_service_factory.h"
17 #include "chrome/browser/signin/signin_manager_factory.h" 18 #include "chrome/browser/signin/signin_manager_factory.h"
18 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" 19 #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
19 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" 20 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h"
20 #include "chrome/browser/sync/glue/autofill_wallet_data_type_controller.h" 21 #include "chrome/browser/sync/glue/autofill_wallet_data_type_controller.h"
21 #include "chrome/browser/sync/glue/bookmark_change_processor.h" 22 #include "chrome/browser/sync/glue/bookmark_change_processor.h"
22 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" 23 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h"
23 #include "chrome/browser/sync/glue/bookmark_model_associator.h" 24 #include "chrome/browser/sync/glue/bookmark_model_associator.h"
24 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" 25 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
25 #include "chrome/browser/sync/glue/history_delete_directives_data_type_controlle r.h" 26 #include "chrome/browser/sync/glue/history_delete_directives_data_type_controlle r.h"
26 #include "chrome/browser/sync/glue/local_device_info_provider_impl.h" 27 #include "chrome/browser/sync/glue/local_device_info_provider_impl.h"
27 #include "chrome/browser/sync/glue/password_data_type_controller.h" 28 #include "chrome/browser/sync/glue/password_data_type_controller.h"
28 #include "chrome/browser/sync/glue/search_engine_data_type_controller.h" 29 #include "chrome/browser/sync/glue/search_engine_data_type_controller.h"
29 #include "chrome/browser/sync/glue/sync_backend_host.h" 30 #include "chrome/browser/sync/glue/sync_backend_host.h"
30 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" 31 #include "chrome/browser/sync/glue/sync_backend_host_impl.h"
31 #include "chrome/browser/sync/glue/theme_data_type_controller.h" 32 #include "chrome/browser/sync/glue/theme_data_type_controller.h"
32 #include "chrome/browser/sync/glue/typed_url_change_processor.h" 33 #include "chrome/browser/sync/glue/typed_url_change_processor.h"
33 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" 34 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h"
34 #include "chrome/browser/sync/glue/typed_url_model_associator.h" 35 #include "chrome/browser/sync/glue/typed_url_model_associator.h"
35 #include "chrome/browser/sync/profile_sync_components_factory_impl.h"
36 #include "chrome/browser/sync/profile_sync_service.h" 36 #include "chrome/browser/sync/profile_sync_service.h"
37 #include "chrome/browser/sync/profile_sync_service_factory.h" 37 #include "chrome/browser/sync/profile_sync_service_factory.h"
38 #include "chrome/browser/sync/sessions/session_data_type_controller.h" 38 #include "chrome/browser/sync/sessions/session_data_type_controller.h"
39 #include "chrome/browser/themes/theme_service.h" 39 #include "chrome/browser/themes/theme_service.h"
40 #include "chrome/browser/themes/theme_service_factory.h" 40 #include "chrome/browser/themes/theme_service_factory.h"
41 #include "chrome/browser/themes/theme_syncable_service.h" 41 #include "chrome/browser/themes/theme_syncable_service.h"
42 #include "chrome/browser/web_data_service_factory.h" 42 #include "chrome/browser/web_data_service_factory.h"
43 #include "chrome/common/chrome_switches.h" 43 #include "chrome/common/chrome_switches.h"
44 #include "chrome/common/chrome_version_info.h" 44 #include "chrome/common/chrome_version_info.h"
45 #include "chrome/common/pref_names.h" 45 #include "chrome/common/pref_names.h"
46 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service .h" 46 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service .h"
47 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h" 47 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h"
48 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync able_service.h" 48 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync able_service.h"
49 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv ice.h" 49 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv ice.h"
50 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 50 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
51 #include "components/autofill/core/common/autofill_pref_names.h" 51 #include "components/autofill/core/common/autofill_pref_names.h"
52 #include "components/autofill/core/common/autofill_switches.h" 52 #include "components/autofill/core/common/autofill_switches.h"
53 #include "components/dom_distiller/core/dom_distiller_features.h"
53 #include "components/dom_distiller/core/dom_distiller_service.h" 54 #include "components/dom_distiller/core/dom_distiller_service.h"
54 #include "components/history/core/browser/history_service.h" 55 #include "components/history/core/browser/history_service.h"
55 #include "components/password_manager/core/browser/password_store.h" 56 #include "components/password_manager/core/browser/password_store.h"
56 #include "components/search_engines/template_url_service.h" 57 #include "components/search_engines/template_url_service.h"
57 #include "components/signin/core/browser/signin_manager.h" 58 #include "components/signin/core/browser/signin_manager.h"
58 #include "components/sync_driver/data_type_manager_impl.h" 59 #include "components/sync_driver/data_type_manager_impl.h"
59 #include "components/sync_driver/data_type_manager_observer.h" 60 #include "components/sync_driver/data_type_manager_observer.h"
60 #include "components/sync_driver/device_info_data_type_controller.h" 61 #include "components/sync_driver/device_info_data_type_controller.h"
61 #include "components/sync_driver/generic_change_processor.h" 62 #include "components/sync_driver/generic_change_processor.h"
62 #include "components/sync_driver/proxy_data_type_controller.h" 63 #include "components/sync_driver/proxy_data_type_controller.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 if (!disabled_types.Has(syncer::PRIORITY_PREFERENCES)) { 319 if (!disabled_types.Has(syncer::PRIORITY_PREFERENCES)) {
319 pss->RegisterDataTypeController( 320 pss->RegisterDataTypeController(
320 new UIDataTypeController( 321 new UIDataTypeController(
321 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 322 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
322 base::Bind(&ChromeReportUnrecoverableError), 323 base::Bind(&ChromeReportUnrecoverableError),
323 syncer::PRIORITY_PREFERENCES, 324 syncer::PRIORITY_PREFERENCES,
324 this)); 325 this));
325 } 326 }
326 327
327 // Article sync is disabled by default. Register only if explicitly enabled. 328 // Article sync is disabled by default. Register only if explicitly enabled.
328 if (IsEnableSyncArticlesSet()) { 329 if (dom_distiller::IsEnableSyncArticlesSet()) {
329 pss->RegisterDataTypeController( 330 pss->RegisterDataTypeController(
330 new UIDataTypeController( 331 new UIDataTypeController(
331 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 332 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
332 base::Bind(&ChromeReportUnrecoverableError), 333 base::Bind(&ChromeReportUnrecoverableError),
333 syncer::ARTICLES, 334 syncer::ARTICLES,
334 this)); 335 this));
335 } 336 }
336 337
337 #if defined(ENABLE_SUPERVISED_USERS) 338 #if defined(ENABLE_SUPERVISED_USERS)
338 pss->RegisterDataTypeController( 339 pss->RegisterDataTypeController(
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 new TypedUrlModelAssociator(profile_sync_service, 744 new TypedUrlModelAssociator(profile_sync_service,
744 history_backend, 745 history_backend,
745 error_handler); 746 error_handler);
746 TypedUrlChangeProcessor* change_processor = 747 TypedUrlChangeProcessor* change_processor =
747 new TypedUrlChangeProcessor(profile_, 748 new TypedUrlChangeProcessor(profile_,
748 model_associator, 749 model_associator,
749 history_backend, 750 history_backend,
750 error_handler); 751 error_handler);
751 return SyncComponents(model_associator, change_processor); 752 return SyncComponents(model_associator, change_processor);
752 } 753 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_distiller/tab_utils_browsertest.cc ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698