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

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

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: update for Max 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 19907313d3f2b56a1ac617b4abfd839c93a1c7b8..4093b743b8b4468ad55ede7b3406fa3bdf702404 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());
« no previous file with comments | « components/sync/core_impl/sync_manager_impl.h ('k') | components/sync/core_impl/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698