Index: components/invalidation/invalidation_notifier.cc |
diff --git a/components/invalidation/invalidation_notifier.cc b/components/invalidation/invalidation_notifier.cc |
index 2319eef4f1c669d7a9c415f2cfb69f3f7e8a5520..e50dea64fd4fbd6d304ae2f1019943096987a4f9 100644 |
--- a/components/invalidation/invalidation_notifier.cc |
+++ b/components/invalidation/invalidation_notifier.cc |
@@ -44,11 +44,13 @@ void InvalidationNotifier::RegisterHandler(InvalidationHandler* handler) { |
registrar_.RegisterHandler(handler); |
} |
-void InvalidationNotifier::UpdateRegisteredIds(InvalidationHandler* handler, |
+bool InvalidationNotifier::UpdateRegisteredIds(InvalidationHandler* handler, |
const ObjectIdSet& ids) { |
DCHECK(CalledOnValidThread()); |
- registrar_.UpdateRegisteredIds(handler, ids); |
+ if (!registrar_.UpdateRegisteredIds(handler, ids)) |
+ return false; |
invalidation_listener_.UpdateRegisteredIds(registrar_.GetAllRegisteredIds()); |
+ return true; |
} |
void InvalidationNotifier::UnregisterHandler(InvalidationHandler* handler) { |