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

Unified Diff: chrome/browser/sync/sessions/status_controller.h

Issue 7477004: Simulate transient error and verify exponential backoff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 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: chrome/browser/sync/sessions/status_controller.h
diff --git a/chrome/browser/sync/sessions/status_controller.h b/chrome/browser/sync/sessions/status_controller.h
index f8c6893dc1804e64b98277d96c75a1f1eedcb10d..329871f5d5988be324a84b9f0585b16e706c9ff7 100644
--- a/chrome/browser/sync/sessions/status_controller.h
+++ b/chrome/browser/sync/sessions/status_controller.h
@@ -37,6 +37,7 @@
#include <map>
#include "base/stl_util.h"
+#include "base/time.h"
#include "chrome/browser/sync/sessions/ordered_commit_set.h"
#include "chrome/browser/sync/sessions/session_state.h"
@@ -192,6 +193,11 @@ class StatusController {
return group_restriction_;
}
+ base::Time sync_start_time() const {
+ // The time at which we sent the first GetUpdates command for this sync.
+ return sync_start_time_;
+ }
+
// Check whether a particular model is included by the active group
// restriction.
bool ActiveGroupRestrictionIncludesModel(syncable::ModelType model) const {
@@ -214,7 +220,6 @@ class StatusController {
void set_num_server_changes_remaining(int64 changes_remaining);
void set_invalid_store(bool invalid_store);
void set_syncer_stuck(bool syncer_stuck);
- void set_syncing(bool syncing);
void set_num_successful_bookmark_commits(int value);
void increment_num_successful_commits();
void increment_num_successful_bookmark_commits();
@@ -231,6 +236,8 @@ class StatusController {
void reset_conflicts_resolved();
void set_items_committed();
+ void SetSyncInProgressAndUpdateStartTime(bool sync_in_progress);
+
private:
friend class ScopedModelSafeGroupRestriction;
@@ -259,6 +266,8 @@ class StatusController {
const ModelSafeRoutingInfo routing_info_;
+ base::Time sync_start_time_;
+
DISALLOW_COPY_AND_ASSIGN(StatusController);
};
« no previous file with comments | « chrome/browser/sync/sessions/session_state_unittest.cc ('k') | chrome/browser/sync/sessions/status_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698