| 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 options.service_url.host() + options.service_url.path(), | 1017 options.service_url.host() + options.service_url.path(), |
| 1018 options.service_url.EffectiveIntPort(), | 1018 options.service_url.EffectiveIntPort(), |
| 1019 options.service_url.SchemeIsSecure(), | 1019 options.service_url.SchemeIsSecure(), |
| 1020 BrowserThread::GetBlockingPool(), | 1020 BrowserThread::GetBlockingPool(), |
| 1021 options.make_http_bridge_factory_fn.Run(), | 1021 options.make_http_bridge_factory_fn.Run(), |
| 1022 options.registrar /* as ModelSafeWorkerRegistrar */, | 1022 options.registrar /* as ModelSafeWorkerRegistrar */, |
| 1023 options.extensions_activity_monitor, | 1023 options.extensions_activity_monitor, |
| 1024 options.registrar /* as SyncManager::ChangeDelegate */, | 1024 options.registrar /* as SyncManager::ChangeDelegate */, |
| 1025 MakeUserAgentForSyncApi(), | 1025 MakeUserAgentForSyncApi(), |
| 1026 options.credentials, | 1026 options.credentials, |
| 1027 CommandLine::ForCurrentProcess()->HasSwitch( | 1027 true, |
| 1028 switches::kEnableSyncTabsForOtherClients), | |
| 1029 new BridgedSyncNotifier( | 1028 new BridgedSyncNotifier( |
| 1030 options.chrome_sync_notification_bridge, | 1029 options.chrome_sync_notification_bridge, |
| 1031 options.sync_notifier_factory->CreateSyncNotifier()), | 1030 options.sync_notifier_factory->CreateSyncNotifier()), |
| 1032 options.restored_key_for_bootstrapping, | 1031 options.restored_key_for_bootstrapping, |
| 1033 options.setup_for_test_mode, | 1032 options.setup_for_test_mode, |
| 1034 &encryptor_, | 1033 &encryptor_, |
| 1035 options.unrecoverable_error_handler, | 1034 options.unrecoverable_error_handler, |
| 1036 options.report_unrecoverable_error_function); | 1035 options.report_unrecoverable_error_function); |
| 1037 LOG_IF(ERROR, !success) << "Syncapi initialization failed!"; | 1036 LOG_IF(ERROR, !success) << "Syncapi initialization failed!"; |
| 1038 | 1037 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 FROM_HERE, | 1374 FROM_HERE, |
| 1376 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, | 1375 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, |
| 1377 core_.get(), sync_thread_done_callback)); | 1376 core_.get(), sync_thread_done_callback)); |
| 1378 } | 1377 } |
| 1379 | 1378 |
| 1380 #undef SDVLOG | 1379 #undef SDVLOG |
| 1381 | 1380 |
| 1382 #undef SLOG | 1381 #undef SLOG |
| 1383 | 1382 |
| 1384 } // namespace browser_sync | 1383 } // namespace browser_sync |
| OLD | NEW |