OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/chrome_sync_client.h" | 5 #include "chrome/browser/sync/chrome_sync_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/syslog_logging.h" | 13 #include "base/syslog_logging.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 15 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 18 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
19 #include "chrome/browser/extensions/api/storage/backend_task_runner.h" | |
20 #include "chrome/browser/favicon/favicon_service_factory.h" | 19 #include "chrome/browser/favicon/favicon_service_factory.h" |
21 #include "chrome/browser/history/history_service_factory.h" | 20 #include "chrome/browser/history/history_service_factory.h" |
22 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 21 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
23 #include "chrome/browser/password_manager/password_store_factory.h" | 22 #include "chrome/browser/password_manager/password_store_factory.h" |
24 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 23 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
25 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/profiles/profile_manager.h" | 25 #include "chrome/browser/profiles/profile_manager.h" |
27 #include "chrome/browser/search_engines/template_url_service_factory.h" | 26 #include "chrome/browser/search_engines/template_url_service_factory.h" |
28 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
29 #include "chrome/browser/sync/glue/sync_start_util.h" | 28 #include "chrome/browser/sync/glue/sync_start_util.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 #include "components/sync/driver/sync_api_component_factory.h" | 66 #include "components/sync/driver/sync_api_component_factory.h" |
68 #include "components/sync/driver/sync_util.h" | 67 #include "components/sync/driver/sync_util.h" |
69 #include "components/sync/engine/passive_model_worker.h" | 68 #include "components/sync/engine/passive_model_worker.h" |
70 #include "components/sync/engine/sequenced_model_worker.h" | 69 #include "components/sync/engine/sequenced_model_worker.h" |
71 #include "components/sync/engine/ui_model_worker.h" | 70 #include "components/sync/engine/ui_model_worker.h" |
72 #include "components/sync/user_events/user_event_service.h" | 71 #include "components/sync/user_events/user_event_service.h" |
73 #include "components/sync_preferences/pref_service_syncable.h" | 72 #include "components/sync_preferences/pref_service_syncable.h" |
74 #include "components/sync_sessions/favicon_cache.h" | 73 #include "components/sync_sessions/favicon_cache.h" |
75 #include "components/sync_sessions/sync_sessions_client.h" | 74 #include "components/sync_sessions/sync_sessions_client.h" |
76 #include "content/public/browser/browser_thread.h" | 75 #include "content/public/browser/browser_thread.h" |
| 76 #include "extensions/browser/api/storage/backend_task_runner.h" |
77 #include "extensions/features/features.h" | 77 #include "extensions/features/features.h" |
78 #include "ui/base/device_form_factor.h" | 78 #include "ui/base/device_form_factor.h" |
79 | 79 |
80 #if BUILDFLAG(ENABLE_APP_LIST) | 80 #if BUILDFLAG(ENABLE_APP_LIST) |
81 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 81 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
82 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" | 82 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
83 #include "ui/app_list/app_list_switches.h" | 83 #include "ui/app_list/app_list_switches.h" |
84 #endif // BUILDFLAG(ENABLE_APP_LIST) | 84 #endif // BUILDFLAG(ENABLE_APP_LIST) |
85 | 85 |
86 #if BUILDFLAG(ENABLE_EXTENSIONS) | 86 #if BUILDFLAG(ENABLE_EXTENSIONS) |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 sync_service->RegisterDataTypeController( | 720 sync_service->RegisterDataTypeController( |
721 base::MakeUnique<SupervisedUserSyncDataTypeController>( | 721 base::MakeUnique<SupervisedUserSyncDataTypeController>( |
722 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_)); | 722 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_)); |
723 sync_service->RegisterDataTypeController( | 723 sync_service->RegisterDataTypeController( |
724 base::MakeUnique<SupervisedUserSyncDataTypeController>( | 724 base::MakeUnique<SupervisedUserSyncDataTypeController>( |
725 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_)); | 725 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_)); |
726 #endif // BUILDFLAG(ENABLE_SUPERVISED_USERS) | 726 #endif // BUILDFLAG(ENABLE_SUPERVISED_USERS) |
727 } | 727 } |
728 | 728 |
729 } // namespace browser_sync | 729 } // namespace browser_sync |
OLD | NEW |