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

Unified Diff: chrome/browser/policy/cloud/cloud_policy_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/cloud_policy_invalidator.cc
diff --git a/chrome/browser/policy/cloud/cloud_policy_invalidator.cc b/chrome/browser/policy/cloud/cloud_policy_invalidator.cc
index c197f978203fb85fa1fb394f5f001a214118ed55..02bd109b854e86e9899443e8720ebc531793494b 100644
--- a/chrome/browser/policy/cloud/cloud_policy_invalidator.cc
+++ b/chrome/browser/policy/cloud/cloud_policy_invalidator.cc
@@ -308,16 +308,15 @@ void CloudPolicyInvalidator::Register(const invalidation::ObjectId& object_id) {
// 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 1: #include "base/logging.h" Nit 2: I think a
pavely 2015/05/19 17:54:55 #1: Done #2: I wanted this change to preserve exi
}
void CloudPolicyInvalidator::Unregister() {
if (is_registered_) {
if (invalid_)
AcknowledgeInvalidation();
- 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