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> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" | 12 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" |
11 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" | 13 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
12 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync
able_service.h" | 14 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync
able_service.h" |
13 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" | 15 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" |
14 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 16 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
15 #include "components/browser_sync/browser/profile_sync_components_factory_impl.h
" | 17 #include "components/browser_sync/browser/profile_sync_components_factory_impl.h
" |
16 #include "components/browser_sync/browser/profile_sync_service.h" | 18 #include "components/browser_sync/browser/profile_sync_service.h" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 return component_factory_.get(); | 372 return component_factory_.get(); |
371 } | 373 } |
372 | 374 |
373 void IOSChromeSyncClient::ClearBrowsingData(base::Time start, base::Time end) { | 375 void IOSChromeSyncClient::ClearBrowsingData(base::Time start, base::Time end) { |
374 // This method should never be called on iOS. | 376 // This method should never be called on iOS. |
375 NOTREACHED(); | 377 NOTREACHED(); |
376 } | 378 } |
377 | 379 |
378 void IOSChromeSyncClient::SetSyncApiComponentFactoryForTesting( | 380 void IOSChromeSyncClient::SetSyncApiComponentFactoryForTesting( |
379 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory) { | 381 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory) { |
380 component_factory_ = component_factory.Pass(); | 382 component_factory_ = std::move(component_factory); |
381 } | 383 } |
OLD | NEW |