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

Unified Diff: sync/notifier/ack_tracker.cc

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 years, 10 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
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/notifier/fake_invalidator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/ack_tracker.cc
diff --git a/sync/notifier/ack_tracker.cc b/sync/notifier/ack_tracker.cc
index 759b8699508d35d9b0fa1e5ac1c831f02f1e0fda..6461571749c2b57cf307e1e428dfdf2aebc4349e 100644
--- a/sync/notifier/ack_tracker.cc
+++ b/sync/notifier/ack_tracker.cc
@@ -97,6 +97,7 @@ void AckTracker::Clear() {
void AckTracker::Track(const ObjectIdSet& ids) {
DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(!ids.empty());
scoped_ptr<Entry> entry(new Entry(
create_backoff_entry_callback_.Run(&kDefaultBackoffPolicy), ids));
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/notifier/fake_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698