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

Unified Diff: components/sync/engine_impl/sync_scheduler_impl.h

Issue 2479313004: [sync] "TwoClientBookmarksSyncTest.Sanity" is flaky (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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 | « components/sync/engine/engine_components_factory_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/sync_scheduler_impl.h
diff --git a/components/sync/engine_impl/sync_scheduler_impl.h b/components/sync/engine_impl/sync_scheduler_impl.h
index 7c5e06f825e4c3648b236b0f860f7de02fb1bdd6..ae6fe1071814544a81d32238aae09783f2f6b808 100644
--- a/components/sync/engine_impl/sync_scheduler_impl.h
+++ b/components/sync/engine_impl/sync_scheduler_impl.h
@@ -86,6 +86,11 @@ class SyncSchedulerImpl : public SyncScheduler, public base::NonThreadSafe {
// Returns true if the client is currently in exponential backoff.
bool IsBackingOff() const;
+ // Changes the default delay between nudge cycles. Model-type specific
+ // overrides will still apply. This is made public so that nudge cycles can be
+ // shortened in integration tests.
+ void SetDefaultNudgeDelay(base::TimeDelta delay_ms);
+
private:
enum JobPriority {
// Non-canary jobs respect exponential backoff.
@@ -139,8 +144,6 @@ class SyncSchedulerImpl : public SyncScheduler, public base::NonThreadSafe {
static const char* GetModeString(Mode mode);
- void SetDefaultNudgeDelay(base::TimeDelta delay_ms);
-
// Invoke the syncer to perform a nudge job.
void DoNudgeSyncCycleJob(JobPriority priority);
« no previous file with comments | « components/sync/engine/engine_components_factory_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698