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

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

Issue 612573005: [Sync] Clean up ProfileSyncService observer events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 "sync/internal_api/sync_manager_impl.h" 5 #include "sync/internal_api/sync_manager_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ConfigureReason reason, 182 ConfigureReason reason,
183 ModelTypeSet to_download, 183 ModelTypeSet to_download,
184 ModelTypeSet to_purge, 184 ModelTypeSet to_purge,
185 ModelTypeSet to_journal, 185 ModelTypeSet to_journal,
186 ModelTypeSet to_unapply, 186 ModelTypeSet to_unapply,
187 const ModelSafeRoutingInfo& new_routing_info, 187 const ModelSafeRoutingInfo& new_routing_info,
188 const base::Closure& ready_task, 188 const base::Closure& ready_task,
189 const base::Closure& retry_task) { 189 const base::Closure& retry_task) {
190 DCHECK(thread_checker_.CalledOnValidThread()); 190 DCHECK(thread_checker_.CalledOnValidThread());
191 DCHECK(!ready_task.is_null()); 191 DCHECK(!ready_task.is_null());
192 DCHECK(!retry_task.is_null());
193 DCHECK(initialized_); 192 DCHECK(initialized_);
194 193
195 DVLOG(1) << "Configuring -" 194 DVLOG(1) << "Configuring -"
196 << "\n\t" << "current types: " 195 << "\n\t" << "current types: "
197 << ModelTypeSetToString(GetRoutingInfoTypes(new_routing_info)) 196 << ModelTypeSetToString(GetRoutingInfoTypes(new_routing_info))
198 << "\n\t" << "types to download: " 197 << "\n\t" << "types to download: "
199 << ModelTypeSetToString(to_download) 198 << ModelTypeSetToString(to_download)
200 << "\n\t" << "types to purge: " 199 << "\n\t" << "types to purge: "
201 << ModelTypeSetToString(to_purge) 200 << ModelTypeSetToString(to_purge)
202 << "\n\t" << "types to journal: " 201 << "\n\t" << "types to journal: "
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver( 1040 bool SyncManagerImpl::HasDirectoryTypeDebugInfoObserver(
1042 syncer::TypeDebugInfoObserver* observer) { 1041 syncer::TypeDebugInfoObserver* observer) {
1043 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer); 1042 return model_type_registry_->HasDirectoryTypeDebugInfoObserver(observer);
1044 } 1043 }
1045 1044
1046 void SyncManagerImpl::RequestEmitDebugInfo() { 1045 void SyncManagerImpl::RequestEmitDebugInfo() {
1047 model_type_registry_->RequestEmitDebugInfo(); 1046 model_type_registry_->RequestEmitDebugInfo();
1048 } 1047 }
1049 1048
1050 } // namespace syncer 1049 } // namespace syncer
OLDNEW
« chrome/browser/sync/profile_sync_service.cc ('K') | « sync/engine/sync_scheduler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698