Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: components/sync/engine_impl/sync_manager_impl.cc

Issue 2770933007: [Sync] Replace ClearServerDataCallback with Closure. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync/engine_impl/sync_manager_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 988
989 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver( 989 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver(
990 TypeDebugInfoObserver* observer) { 990 TypeDebugInfoObserver* observer) {
991 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer); 991 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer);
992 } 992 }
993 993
994 void SyncManagerImpl::RequestEmitDebugInfo() { 994 void SyncManagerImpl::RequestEmitDebugInfo() {
995 model_type_registry_->RequestEmitDebugInfo(); 995 model_type_registry_->RequestEmitDebugInfo();
996 } 996 }
997 997
998 void SyncManagerImpl::ClearServerData(const ClearServerDataCallback& callback) { 998 void SyncManagerImpl::ClearServerData(const base::Closure& callback) {
999 DCHECK(thread_checker_.CalledOnValidThread()); 999 DCHECK(thread_checker_.CalledOnValidThread());
1000 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time()); 1000 scheduler_->Start(SyncScheduler::CLEAR_SERVER_DATA_MODE, base::Time());
1001 ClearParams params(callback); 1001 ClearParams params(callback);
1002 scheduler_->ScheduleClearServerData(params); 1002 scheduler_->ScheduleClearServerData(params);
1003 } 1003 }
1004 1004
1005 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, 1005 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch,
1006 bool empty_jar) { 1006 bool empty_jar) {
1007 DCHECK(thread_checker_.CalledOnValidThread()); 1007 DCHECK(thread_checker_.CalledOnValidThread());
1008 cycle_context_->set_cookie_jar_mismatch(account_mismatch); 1008 cycle_context_->set_cookie_jar_mismatch(account_mismatch);
1009 cycle_context_->set_cookie_jar_empty(empty_jar); 1009 cycle_context_->set_cookie_jar_empty(empty_jar);
1010 } 1010 }
1011 1011
1012 void SyncManagerImpl::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) { 1012 void SyncManagerImpl::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) {
1013 directory()->OnMemoryDump(pmd); 1013 directory()->OnMemoryDump(pmd);
1014 } 1014 }
1015 1015
1016 } // namespace syncer 1016 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/sync_manager_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698