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

Unified Diff: chrome/browser/policy/cloud/remote_commands_invalidator.cc

Issue 1146533005: [Sync] InvalidationService shouldn't CHECK when registering ObjectId for more than one handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix one more compile error. Created 5 years, 7 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: 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();

Powered by Google App Engine
This is Rietveld 408576698