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

Unified Diff: components/sync/core_impl/sync_manager_impl.cc

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/core_impl/sync_manager_impl.cc
diff --git a/components/sync/core_impl/sync_manager_impl.cc b/components/sync/core_impl/sync_manager_impl.cc
index 4f8718de82d190a8e6e06055f3964206da45d050..eda816af02a5d5afc0af34a8d0fec4a07dcc63a1 100644
--- a/components/sync/core_impl/sync_manager_impl.cc
+++ b/components/sync/core_impl/sync_manager_impl.cc
@@ -852,23 +852,6 @@ void SyncManagerImpl::SetJsEventHandler(
js_sync_encryption_handler_observer_.SetJsEventHandler(event_handler);
}
-std::unique_ptr<base::ListValue> SyncManagerImpl::GetAllNodesForType(
- syncer::ModelType type) {
- DirectoryTypeDebugInfoEmitterMap* emitter_map =
- model_type_registry_->directory_type_debug_info_emitter_map();
- DirectoryTypeDebugInfoEmitterMap::iterator it = emitter_map->find(type);
-
- if (it == emitter_map->end()) {
- // This can happen in some cases. The UI thread makes requests of us
- // when it doesn't really know which types are enabled or disabled.
- DLOG(WARNING) << "Asked to return debug info for invalid type "
- << ModelTypeToString(type);
- return std::unique_ptr<base::ListValue>(new base::ListValue());
- }
-
- return it->second->GetAllNodes();
-}
-
void SyncManagerImpl::SetInvalidatorEnabled(bool invalidator_enabled) {
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698