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

Unified Diff: sync/internal_api/sync_manager_impl.h

Issue 10991005: Added nudge source counters to about:sync. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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/internal_api/sync_manager_impl.h
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h
index e315b2cff6ac67e28a9bfa6af9b3f352da273b44..4971e7c2f95b3245fdd319e65f7b56a151d71bab 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -177,6 +177,19 @@ class SyncManagerImpl : public SyncManager,
const SyncScheduler* scheduler() const;
+ // Used to ensure that nudge counters in allstatus_ are incremented
+ // every time a nudge is scheduled.
+ void ScheduleNudgeAsync(
+ const base::TimeDelta& delay,
+ NudgeSource source,
+ ModelTypeSet types,
+ const tracked_objects::Location& nudge_location);
+
+ void ScheduleNudgeWithStatesAsync(
+ const base::TimeDelta& delay, NudgeSource source,
+ const ModelTypeStateMap& type_state_map,
+ const tracked_objects::Location& nudge_location);
+
private:
friend class SyncManagerTest;
FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest);

Powered by Google App Engine
This is Rietveld 408576698