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