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

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_sync_client.mm

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 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 "ios/chrome/browser/sync/ios_chrome_sync_client.h" 5 #include "ios/chrome/browser/sync/ios_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/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service .h" 13 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service .h"
14 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h" 14 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h"
15 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync able_service.h" 15 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync able_service.h"
16 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv ice.h" 16 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv ice.h"
17 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 17 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
18 #include "components/browser_sync/browser/profile_sync_components_factory_impl.h " 18 #include "components/browser_sync/browser/profile_sync_components_factory_impl.h "
19 #include "components/browser_sync/browser/profile_sync_service.h" 19 #include "components/browser_sync/browser/profile_sync_service.h"
20 #include "components/browser_sync/common/browser_sync_switches.h" 20 #include "components/browser_sync/common/browser_sync_switches.h"
21 #include "components/dom_distiller/core/dom_distiller_service.h" 21 #include "components/dom_distiller/core/dom_distiller_service.h"
22 #include "components/history/core/browser/history_model_worker.h" 22 #include "components/history/core/browser/history_model_worker.h"
23 #include "components/history/core/browser/history_service.h" 23 #include "components/history/core/browser/history_service.h"
24 #include "components/invalidation/impl/profile_invalidation_provider.h" 24 #include "components/invalidation/impl/profile_invalidation_provider.h"
25 #include "components/keyed_service/core/service_access_type.h" 25 #include "components/keyed_service/core/service_access_type.h"
26 #include "components/password_manager/core/browser/password_store.h" 26 #include "components/password_manager/core/browser/password_store.h"
27 #include "components/password_manager/sync/browser/password_model_worker.h" 27 #include "components/password_manager/sync/browser/password_model_worker.h"
28 #include "components/search_engines/search_engine_data_type_controller.h" 28 #include "components/search_engines/search_engine_data_type_controller.h"
29 #include "components/signin/core/browser/profile_oauth2_token_service.h" 29 #include "components/signin/core/browser/profile_oauth2_token_service.h"
30 #include "components/sync/base/extensions_activity.h"
31 #include "components/sync/engine/passive_model_worker.h"
30 #include "components/sync_driver/glue/browser_thread_model_worker.h" 32 #include "components/sync_driver/glue/browser_thread_model_worker.h"
31 #include "components/sync_driver/glue/chrome_report_unrecoverable_error.h" 33 #include "components/sync_driver/glue/chrome_report_unrecoverable_error.h"
32 #include "components/sync_driver/glue/ui_model_worker.h" 34 #include "components/sync_driver/glue/ui_model_worker.h"
33 #include "components/sync_driver/sync_api_component_factory.h" 35 #include "components/sync_driver/sync_api_component_factory.h"
34 #include "components/sync_driver/sync_util.h" 36 #include "components/sync_driver/sync_util.h"
35 #include "components/sync_driver/ui_data_type_controller.h" 37 #include "components/sync_driver/ui_data_type_controller.h"
36 #include "components/sync_sessions/favicon_cache.h" 38 #include "components/sync_sessions/favicon_cache.h"
37 #include "components/sync_sessions/local_session_event_router.h" 39 #include "components/sync_sessions/local_session_event_router.h"
38 #include "components/sync_sessions/sync_sessions_client.h" 40 #include "components/sync_sessions/sync_sessions_client.h"
39 #include "components/sync_sessions/synced_window_delegates_getter.h" 41 #include "components/sync_sessions/synced_window_delegates_getter.h"
(...skipping 12 matching lines...) Expand all
52 #include "ios/chrome/browser/pref_names.h" 54 #include "ios/chrome/browser/pref_names.h"
53 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" 55 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h"
54 #include "ios/chrome/browser/sync/glue/sync_start_util.h" 56 #include "ios/chrome/browser/sync/glue/sync_start_util.h"
55 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" 57 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h"
56 #include "ios/chrome/browser/sync/sessions/ios_chrome_local_session_event_router .h" 58 #include "ios/chrome/browser/sync/sessions/ios_chrome_local_session_event_router .h"
57 #include "ios/chrome/browser/undo/bookmark_undo_service_factory.h" 59 #include "ios/chrome/browser/undo/bookmark_undo_service_factory.h"
58 #include "ios/chrome/browser/web_data_service_factory.h" 60 #include "ios/chrome/browser/web_data_service_factory.h"
59 #include "ios/chrome/common/channel_info.h" 61 #include "ios/chrome/common/channel_info.h"
60 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 62 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
61 #include "ios/web/public/web_thread.h" 63 #include "ios/web/public/web_thread.h"
62 #include "sync/internal_api/public/engine/passive_model_worker.h"
63 #include "sync/util/extensions_activity.h"
64 #include "ui/base/device_form_factor.h" 64 #include "ui/base/device_form_factor.h"
65 65
66 namespace { 66 namespace {
67 67
68 // iOS implementation of SyncSessionsClient. Needs to be in a separate class 68 // iOS implementation of SyncSessionsClient. Needs to be in a separate class
69 // due to possible multiple inheritance issues, wherein IOSChromeSyncClient 69 // due to possible multiple inheritance issues, wherein IOSChromeSyncClient
70 // might inherit from other interfaces with same methods. 70 // might inherit from other interfaces with same methods.
71 class SyncSessionsClientImpl : public sync_sessions::SyncSessionsClient { 71 class SyncSessionsClientImpl : public sync_sessions::SyncSessionsClient {
72 public: 72 public:
73 explicit SyncSessionsClientImpl(ios::ChromeBrowserState* browser_state) 73 explicit SyncSessionsClientImpl(ios::ChromeBrowserState* browser_state)
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state); 399 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state);
400 if (profile_sync_service != nullptr) { 400 if (profile_sync_service != nullptr) {
401 const sync_driver::DeviceInfoTracker* tracker = 401 const sync_driver::DeviceInfoTracker* tracker =
402 profile_sync_service->GetDeviceInfoTracker(); 402 profile_sync_service->GetDeviceInfoTracker();
403 if (tracker != nullptr) { 403 if (tracker != nullptr) {
404 trackers->push_back(tracker); 404 trackers->push_back(tracker);
405 } 405 }
406 } 406 }
407 } 407 }
408 } 408 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698