| 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 "components/sync/engine_impl/sync_manager_impl.h" | 5 #include "components/sync/engine_impl/sync_manager_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 if (args->enable_local_sync_backend) { | 289 if (args->enable_local_sync_backend) { |
| 290 #if defined(OS_WIN) | 290 #if defined(OS_WIN) |
| 291 VLOG(1) << "Running against local sync backend."; | 291 VLOG(1) << "Running against local sync backend."; |
| 292 connection_manager_ = base::MakeUnique<LoopbackConnectionManager>( | 292 connection_manager_ = base::MakeUnique<LoopbackConnectionManager>( |
| 293 args->cancelation_signal, args->local_sync_backend_folder); | 293 args->cancelation_signal, args->local_sync_backend_folder); |
| 294 #else | 294 #else |
| 295 NOTREACHED(); | 295 NOTREACHED(); |
| 296 #endif // defined(OS_WIN) | 296 #endif // defined(OS_WIN) |
| 297 } else { | 297 } else { |
| 298 connection_manager_ = base::MakeUnique<SyncServerConnectionManager>( | 298 connection_manager_ = base::MakeUnique<SyncServerConnectionManager>( |
| 299 args->service_url.host() + args->service_url.path(), | 299 args->service_url.host() + args->service_url.path().as_string(), |
| 300 args->service_url.EffectiveIntPort(), | 300 args->service_url.EffectiveIntPort(), |
| 301 args->service_url.SchemeIsCryptographic(), args->post_factory.release(), | 301 args->service_url.SchemeIsCryptographic(), args->post_factory.release(), |
| 302 args->cancelation_signal); | 302 args->cancelation_signal); |
| 303 } | 303 } |
| 304 connection_manager_->set_client_id(directory()->cache_guid()); | 304 connection_manager_->set_client_id(directory()->cache_guid()); |
| 305 connection_manager_->AddListener(this); | 305 connection_manager_->AddListener(this); |
| 306 | 306 |
| 307 std::string sync_id = directory()->cache_guid(); | 307 std::string sync_id = directory()->cache_guid(); |
| 308 | 308 |
| 309 DVLOG(1) << "Setting sync client ID: " << sync_id; | 309 DVLOG(1) << "Setting sync client ID: " << sync_id; |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, | 1014 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, |
| 1015 bool empty_jar) { | 1015 bool empty_jar) { |
| 1016 DCHECK(thread_checker_.CalledOnValidThread()); | 1016 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1017 cycle_context_->set_cookie_jar_mismatch(account_mismatch); | 1017 cycle_context_->set_cookie_jar_mismatch(account_mismatch); |
| 1018 cycle_context_->set_cookie_jar_empty(empty_jar); | 1018 cycle_context_->set_cookie_jar_empty(empty_jar); |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 } // namespace syncer | 1021 } // namespace syncer |
| OLD | NEW |