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

Unified Diff: trunk/src/sync/sessions/nudge_tracker.h

Issue 135923002: Revert 244381 "Support GU retry command in sync engine. The comm..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | « trunk/src/sync/protocol/sync_enums.proto ('k') | trunk/src/sync/sessions/nudge_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/sync/sessions/nudge_tracker.h
===================================================================
--- trunk/src/sync/sessions/nudge_tracker.h (revision 244437)
+++ trunk/src/sync/sessions/nudge_tracker.h (working copy)
@@ -36,14 +36,11 @@
// Returns true if there is a good reason for performing a get updates
// request as part of the next sync cycle.
- bool IsGetUpdatesRequired(base::TimeTicks now) const;
+ bool IsGetUpdatesRequired() const;
- // Return true if should perform a sync cycle for GU retry.
- bool IsRetryRequired(base::TimeTicks now) const;
-
- // Tells this class that all required update fetching or committing has
+ // Tells this class that all required update fetching and committing has
// completed successfully.
- void RecordSuccessfulSyncCycle(base::TimeTicks now);
+ void RecordSuccessfulSyncCycle();
// Takes note of a local change.
void RecordLocalChange(ModelTypeSet types);
@@ -108,10 +105,6 @@
// Adjusts the number of hints that can be stored locally.
void SetHintBufferSize(size_t size);
- void set_next_retry_time(base::TimeTicks next_retry_time) {
- next_retry_time_ = next_retry_time;
- }
-
private:
typedef std::map<ModelType, DataTypeTracker> TypeTrackerMap;
@@ -137,11 +130,6 @@
size_t num_payloads_per_type_;
- base::TimeTicks last_successful_sync_time_;
-
- // A retry GU should be issued after this time.
- base::TimeTicks next_retry_time_;
-
DISALLOW_COPY_AND_ASSIGN(NudgeTracker);
};
« no previous file with comments | « trunk/src/sync/protocol/sync_enums.proto ('k') | trunk/src/sync/sessions/nudge_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698