OLD | NEW |
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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/sync/glue/sync_backend_host.h" | 7 #include "chrome/browser/sync/glue/sync_backend_host.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 options.registrar /* as SyncManager::ChangeDelegate */, | 1191 options.registrar /* as SyncManager::ChangeDelegate */, |
1192 options.credentials, | 1192 options.credentials, |
1193 #if defined(OS_ANDROID) | 1193 #if defined(OS_ANDROID) |
1194 scoped_ptr<syncer::Invalidator>( | 1194 scoped_ptr<syncer::Invalidator>( |
1195 new AndroidInvalidatorBridgeProxy( | 1195 new AndroidInvalidatorBridgeProxy( |
1196 options.android_invalidator_bridge)), | 1196 options.android_invalidator_bridge)), |
1197 #else | 1197 #else |
1198 scoped_ptr<syncer::Invalidator>( | 1198 scoped_ptr<syncer::Invalidator>( |
1199 options.invalidator_factory->CreateInvalidator()), | 1199 options.invalidator_factory->CreateInvalidator()), |
1200 #endif | 1200 #endif |
| 1201 options.invalidator_factory->GetInvalidatorClientId(), |
1201 options.restored_key_for_bootstrapping, | 1202 options.restored_key_for_bootstrapping, |
1202 options.restored_keystore_key_for_bootstrapping, | 1203 options.restored_keystore_key_for_bootstrapping, |
1203 scoped_ptr<InternalComponentsFactory>( | 1204 scoped_ptr<InternalComponentsFactory>( |
1204 options.internal_components_factory), | 1205 options.internal_components_factory), |
1205 &encryptor_, | 1206 &encryptor_, |
1206 options.unrecoverable_error_handler, | 1207 options.unrecoverable_error_handler, |
1207 options.report_unrecoverable_error_function); | 1208 options.report_unrecoverable_error_function); |
1208 | 1209 |
1209 // |sync_manager_| may end up being NULL here in tests (in | 1210 // |sync_manager_| may end up being NULL here in tests (in |
1210 // synchronous initialization mode). | 1211 // synchronous initialization mode). |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 DVLOG(1) << "Connection status changed: " | 1659 DVLOG(1) << "Connection status changed: " |
1659 << syncer::ConnectionStatusToString(status); | 1660 << syncer::ConnectionStatusToString(status); |
1660 frontend_->OnConnectionStatusChange(status); | 1661 frontend_->OnConnectionStatusChange(status); |
1661 } | 1662 } |
1662 | 1663 |
1663 #undef SDVLOG | 1664 #undef SDVLOG |
1664 | 1665 |
1665 #undef SLOG | 1666 #undef SLOG |
1666 | 1667 |
1667 } // namespace browser_sync | 1668 } // namespace browser_sync |
OLD | NEW |