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

Unified Diff: chrome/browser/sync/sessions/session_state.cc

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/session_state.cc
diff --git a/chrome/browser/sync/sessions/session_state.cc b/chrome/browser/sync/sessions/session_state.cc
index cb089d972cf887bf3a87e1a576ec19e44408e07c..96aafe5b357dbd2006b3a9792ca05ce15c22e987 100644
--- a/chrome/browser/sync/sessions/session_state.cc
+++ b/chrome/browser/sync/sessions/session_state.cc
@@ -47,7 +47,7 @@ DictionaryValue* SyncSourceInfo::ToValue() const {
SyncerStatus::SyncerStatus()
: invalid_store(false),
syncer_stuck(false),
- syncing(false),
+ sync_in_progress(false),
num_successful_commits(0),
num_successful_bookmark_commits(0),
num_updates_downloaded_total(0),
@@ -63,7 +63,7 @@ DictionaryValue* SyncerStatus::ToValue() const {
DictionaryValue* value = new DictionaryValue();
value->SetBoolean("invalidStore", invalid_store);
value->SetBoolean("syncerStuck", syncer_stuck);
- value->SetBoolean("syncing", syncing);
+ value->SetBoolean("syncInProgress", sync_in_progress);
value->SetInteger("numSuccessfulCommits", num_successful_commits);
value->SetInteger("numSuccessfulBookmarkCommits",
num_successful_bookmark_commits);
@@ -124,7 +124,8 @@ SyncSessionSnapshot::SyncSessionSnapshot(
int num_conflicting_updates,
bool did_commit_items,
const SyncSourceInfo& source,
- size_t num_entries)
+ size_t num_entries,
+ base::Time sync_start_time)
: syncer_status(syncer_status),
errors(errors),
num_server_changes_remaining(num_server_changes_remaining),
@@ -138,7 +139,8 @@ SyncSessionSnapshot::SyncSessionSnapshot(
num_conflicting_updates(num_conflicting_updates),
did_commit_items(did_commit_items),
source(source),
- num_entries(num_entries){
+ num_entries(num_entries),
+ sync_start_time(sync_start_time) {
for (int i = syncable::FIRST_REAL_MODEL_TYPE;
i < syncable::MODEL_TYPE_COUNT; ++i) {
const_cast<std::string&>(this->download_progress_markers[i]).assign(
« no previous file with comments | « chrome/browser/sync/sessions/session_state.h ('k') | chrome/browser/sync/sessions/session_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698