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

Unified Diff: sync/notifier/registration_manager.h

Issue 10824140: Add InvalidationStateTracker::Forget() to erase an entry from storage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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: sync/notifier/registration_manager.h
diff --git a/sync/notifier/registration_manager.h b/sync/notifier/registration_manager.h
index 9d0036590441064db775142e1f5868928a2d1b61..01ae7b9c807327a54a88d7a51866d453037a9fbc 100644
--- a/sync/notifier/registration_manager.h
+++ b/sync/notifier/registration_manager.h
@@ -68,8 +68,9 @@ class RegistrationManager : public base::NonThreadSafe {
virtual ~RegistrationManager();
// Registers all object IDs included in the given set (that are not
- // already disabled) and unregisters all other object IDs.
- void UpdateRegisteredIds(const ObjectIdSet& ids);
+ // already disabled) and unregisters all other object IDs. The return value is
+ // the set of IDs that was unregistered.
+ ObjectIdSet UpdateRegisteredIds(const ObjectIdSet& ids);
akalin 2012/08/22 19:57:30 what do you think of making GetRegisteredIdsForTes
dcheng 2012/08/24 01:35:25 I'm not opposed to exposing it publicly. However,
akalin 2012/08/29 17:33:54 Yeah, you're right about the funky flow. Actually
// Marks the registration for the |id| lost and re-registers
// it (unless it's disabled).

Powered by Google App Engine
This is Rietveld 408576698