| 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 "sync/internal_api/sync_manager_impl.h" | 5 #include "sync/internal_api/sync_manager_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 model_type_registry_->RequestEmitDebugInfo(); | 1019 model_type_registry_->RequestEmitDebugInfo(); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) { | 1022 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) { |
| 1023 DCHECK(thread_checker_.CalledOnValidThread()); | 1023 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1024 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time()); | 1024 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time()); |
| 1025 ClearParams params(callback); | 1025 ClearParams params(callback); |
| 1026 scheduler_->ScheduleClearServerData(params); | 1026 scheduler_->ScheduleClearServerData(params); |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch) { | 1029 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, |
| 1030 bool empty_jar) { |
| 1030 DCHECK(thread_checker_.CalledOnValidThread()); | 1031 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1031 session_context_->set_cookie_jar_mismatch(account_mismatch); | 1032 session_context_->set_cookie_jar_mismatch(account_mismatch); |
| 1033 session_context_->set_cookie_jar_empty(empty_jar); |
| 1032 } | 1034 } |
| 1033 | 1035 |
| 1034 } // namespace syncer | 1036 } // namespace syncer |
| OLD | NEW |