Index: chrome/browser/policy/cloud/remote_commands_invalidator.cc |
diff --git a/chrome/browser/policy/cloud/remote_commands_invalidator.cc b/chrome/browser/policy/cloud/remote_commands_invalidator.cc |
index f0af3cceff7f6f6558e9ff00d3b3cdd4ca84d987..9e094f9a4fc0555e3d57a9ec8d697abe5ec052e2 100644 |
--- a/chrome/browser/policy/cloud/remote_commands_invalidator.cc |
+++ b/chrome/browser/policy/cloud/remote_commands_invalidator.cc |
@@ -138,13 +138,13 @@ void RemoteCommandsInvalidator::Register( |
// Update registration with the invalidation service. |
syncer::ObjectIdSet ids; |
ids.insert(object_id); |
- invalidation_service_->UpdateRegisteredInvalidationIds(this, ids); |
+ CHECK(invalidation_service_->UpdateRegisteredInvalidationIds(this, ids)); |
bartfab (slow)
2015/05/19 10:44:42
Nit: As in the other file, LOG(ERROR) would be suf
|
} |
void RemoteCommandsInvalidator::Unregister() { |
if (is_registered_) { |
- invalidation_service_->UpdateRegisteredInvalidationIds( |
- this, syncer::ObjectIdSet()); |
+ CHECK(invalidation_service_->UpdateRegisteredInvalidationIds( |
+ this, syncer::ObjectIdSet())); |
invalidation_service_->UnregisterInvalidationHandler(this); |
is_registered_ = false; |
UpdateInvalidationsEnabled(); |