| 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 "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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "components/sync_driver/sync_api_component_factory.h" | 32 #include "components/sync_driver/sync_api_component_factory.h" |
| 33 #include "components/sync_driver/sync_util.h" | 33 #include "components/sync_driver/sync_util.h" |
| 34 #include "components/sync_driver/ui_data_type_controller.h" | 34 #include "components/sync_driver/ui_data_type_controller.h" |
| 35 #include "components/sync_sessions/favicon_cache.h" | 35 #include "components/sync_sessions/favicon_cache.h" |
| 36 #include "components/sync_sessions/local_session_event_router.h" | 36 #include "components/sync_sessions/local_session_event_router.h" |
| 37 #include "components/sync_sessions/sync_sessions_client.h" | 37 #include "components/sync_sessions/sync_sessions_client.h" |
| 38 #include "components/sync_sessions/synced_window_delegates_getter.h" | 38 #include "components/sync_sessions/synced_window_delegates_getter.h" |
| 39 #include "components/syncable_prefs/pref_service_syncable.h" | 39 #include "components/syncable_prefs/pref_service_syncable.h" |
| 40 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" | 40 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" |
| 41 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" | 41 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" |
| 42 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 42 #include "ios/chrome/browser/chrome_url_constants.h" | 43 #include "ios/chrome/browser/chrome_url_constants.h" |
| 43 #include "ios/chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 44 #include "ios/chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 44 #include "ios/chrome/browser/favicon/favicon_service_factory.h" | 45 #include "ios/chrome/browser/favicon/favicon_service_factory.h" |
| 45 #include "ios/chrome/browser/history/history_service_factory.h" | 46 #include "ios/chrome/browser/history/history_service_factory.h" |
| 46 #include "ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provid
er_factory.h" | 47 #include "ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provid
er_factory.h" |
| 47 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" | 48 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" |
| 48 #include "ios/chrome/browser/pref_names.h" | 49 #include "ios/chrome/browser/pref_names.h" |
| 49 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" | 50 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
| 50 #include "ios/chrome/browser/sync/glue/sync_start_util.h" | 51 #include "ios/chrome/browser/sync/glue/sync_start_util.h" |
| 51 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" | 52 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" |
| 52 #include "ios/chrome/browser/sync/sessions/ios_chrome_local_session_event_router
.h" | 53 #include "ios/chrome/browser/sync/sessions/ios_chrome_local_session_event_router
.h" |
| 53 #include "ios/chrome/browser/undo/bookmark_undo_service_factory.h" | 54 #include "ios/chrome/browser/undo/bookmark_undo_service_factory.h" |
| 54 #include "ios/chrome/browser/web_data_service_factory.h" | 55 #include "ios/chrome/browser/web_data_service_factory.h" |
| 55 #include "ios/chrome/common/channel_info.h" | 56 #include "ios/chrome/common/channel_info.h" |
| 56 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | |
| 57 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 57 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
| 58 #include "ios/web/public/web_thread.h" | 58 #include "ios/web/public/web_thread.h" |
| 59 #include "sync/internal_api/public/engine/passive_model_worker.h" | 59 #include "sync/internal_api/public/engine/passive_model_worker.h" |
| 60 #include "sync/util/extensions_activity.h" | 60 #include "sync/util/extensions_activity.h" |
| 61 #include "ui/base/device_form_factor.h" | 61 #include "ui/base/device_form_factor.h" |
| 62 | 62 |
| 63 namespace { | 63 namespace { |
| 64 | 64 |
| 65 // iOS implementation of SyncSessionsClient. Needs to be in a separate class | 65 // iOS implementation of SyncSessionsClient. Needs to be in a separate class |
| 66 // due to possible multiple inheritance issues, wherein IOSChromeSyncClient | 66 // due to possible multiple inheritance issues, wherein IOSChromeSyncClient |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 void IOSChromeSyncClient::ClearBrowsingData(base::Time start, base::Time end) { | 374 void IOSChromeSyncClient::ClearBrowsingData(base::Time start, base::Time end) { |
| 375 // This method should never be called on iOS. | 375 // This method should never be called on iOS. |
| 376 NOTREACHED(); | 376 NOTREACHED(); |
| 377 } | 377 } |
| 378 | 378 |
| 379 void IOSChromeSyncClient::SetSyncApiComponentFactoryForTesting( | 379 void IOSChromeSyncClient::SetSyncApiComponentFactoryForTesting( |
| 380 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory) { | 380 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory) { |
| 381 component_factory_ = std::move(component_factory); | 381 component_factory_ = std::move(component_factory); |
| 382 } | 382 } |
| OLD | NEW |