Index: sync/notifier/invalidator_registrar.cc |
diff --git a/sync/notifier/invalidator_registrar.cc b/sync/notifier/invalidator_registrar.cc |
index 1c9c50cbbf2044c06e5e483f30ad48b967035478..334505287d20de79c9993c35682a4ec6fbe3b003 100644 |
--- a/sync/notifier/invalidator_registrar.cc |
+++ b/sync/notifier/invalidator_registrar.cc |
@@ -123,6 +123,18 @@ InvalidatorState InvalidatorRegistrar::GetInvalidatorState() const { |
return state_; |
} |
+std::map<std::string, ObjectIdSet> |
+InvalidatorRegistrar::GetSanitizedHandlersIdsMap() { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ std::map<std::string, ObjectIdSet> clean_handlers_to_ids; |
+ for (HandlerIdsMap::const_iterator it = handler_to_ids_map_.begin(); |
+ it != handler_to_ids_map_.end(); |
+ ++it) { |
+ clean_handlers_to_ids[it->first->GetOwnerName()] = ObjectIdSet(it->second); |
+ } |
+ return clean_handlers_to_ids; |
+} |
+ |
bool InvalidatorRegistrar::IsHandlerRegisteredForTest( |
InvalidationHandler* handler) const { |
DCHECK(thread_checker_.CalledOnValidThread()); |