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

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

Issue 7013040: Add information about sync session and other useful data to about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 years, 7 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 61e25bb3a77b57a67e419e2ed36c3c11889dcf9f..e426d00cadd92cb55c17d5da1ad6d93a87b5a361 100644
--- a/chrome/browser/sync/sessions/session_state.cc
+++ b/chrome/browser/sync/sessions/session_state.cc
@@ -121,7 +121,8 @@ SyncSessionSnapshot::SyncSessionSnapshot(
int num_blocking_conflicting_updates,
int num_conflicting_updates,
bool did_commit_items,
- const SyncSourceInfo& source)
+ const SyncSourceInfo& source,
+ size_t num_entries)
: syncer_status(syncer_status),
errors(errors),
num_server_changes_remaining(num_server_changes_remaining),
@@ -134,7 +135,8 @@ SyncSessionSnapshot::SyncSessionSnapshot(
num_blocking_conflicting_updates(num_blocking_conflicting_updates),
num_conflicting_updates(num_conflicting_updates),
did_commit_items(did_commit_items),
- source(source) {
+ source(source),
+ num_entries(num_entries){
for (int i = syncable::FIRST_REAL_MODEL_TYPE;
i < syncable::MODEL_TYPE_COUNT; ++i) {
const_cast<std::string&>(this->download_progress_markers[i]).assign(
@@ -165,6 +167,7 @@ DictionaryValue* SyncSessionSnapshot::ToValue() const {
num_blocking_conflicting_updates);
value->SetInteger("numConflictingUpdates", num_conflicting_updates);
value->SetBoolean("didCommitItems", did_commit_items);
+ value->SetInteger("numEntries", num_entries);
value->Set("source", source.ToValue());
return value;
}
« 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