summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authorrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-12 05:25:06 +0000
committerrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-12 05:25:06 +0000
commit3fc0b406884268c87811a06ac05b02037fdc2d5c (patch)
treee2b895ef083dfadbaec9e62f7f43216bed30d5ba /sync
parent7f8afda277ad1e991375826a55a1a6017ce549a8 (diff)
downloadchromium_src-3fc0b406884268c87811a06ac05b02037fdc2d5c.zip
chromium_src-3fc0b406884268c87811a06ac05b02037fdc2d5c.tar.gz
chromium_src-3fc0b406884268c87811a06ac05b02037fdc2d5c.tar.bz2
sync: Remove some fields from about:sync
Removes some of the status indicators on about:sync that were made obsolete by the introduction of the protocol events log. BUG=349301 Review URL: https://codereview.chromium.org/235923004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r--sync/engine/all_status.cc16
-rw-r--r--sync/internal_api/public/engine/sync_status.cc6
-rw-r--r--sync/internal_api/public/engine/sync_status.h12
3 files changed, 0 insertions, 34 deletions
diff --git a/sync/engine/all_status.cc b/sync/engine/all_status.cc
index d73f206..3deda48 100644
--- a/sync/engine/all_status.cc
+++ b/sync/engine/all_status.cc
@@ -71,22 +71,6 @@ SyncStatus AllStatus::CalcSyncing(const SyncCycleEvent &event) const {
snapshot.model_neutral_state().num_local_overwrites;
status.num_server_overwrites_total +=
snapshot.model_neutral_state().num_server_overwrites;
- if (snapshot.model_neutral_state().num_updates_downloaded_total == 0) {
- ++status.empty_get_updates;
- } else {
- ++status.nonempty_get_updates;
- }
- if (snapshot.model_neutral_state().num_successful_commits == 0) {
- ++status.sync_cycles_without_commits;
- } else {
- ++status.sync_cycles_with_commits;
- }
- if (snapshot.model_neutral_state().num_successful_commits == 0 &&
- snapshot.model_neutral_state().num_updates_downloaded_total == 0) {
- ++status.useless_sync_cycles;
- } else {
- ++status.useful_sync_cycles;
- }
}
return status;
}
diff --git a/sync/internal_api/public/engine/sync_status.cc b/sync/internal_api/public/engine/sync_status.cc
index 6291b29..b1687e3 100644
--- a/sync/internal_api/public/engine/sync_status.cc
+++ b/sync/internal_api/public/engine/sync_status.cc
@@ -21,12 +21,6 @@ SyncStatus::SyncStatus()
num_commits_total(0),
num_local_overwrites_total(0),
num_server_overwrites_total(0),
- nonempty_get_updates(0),
- empty_get_updates(0),
- sync_cycles_with_commits(0),
- sync_cycles_without_commits(0),
- useless_sync_cycles(0),
- useful_sync_cycles(0),
nudge_source_notification(0),
nudge_source_local(0),
nudge_source_local_refresh(0),
diff --git a/sync/internal_api/public/engine/sync_status.h b/sync/internal_api/public/engine/sync_status.h
index 124dac6..c32be00 100644
--- a/sync/internal_api/public/engine/sync_status.h
+++ b/sync/internal_api/public/engine/sync_status.h
@@ -65,18 +65,6 @@ struct SYNC_EXPORT SyncStatus {
int num_local_overwrites_total;
int num_server_overwrites_total;
- // Count of empty and non empty getupdates;
- int nonempty_get_updates;
- int empty_get_updates;
-
- // Count of sync cycles that successfully committed items;
- int sync_cycles_with_commits;
- int sync_cycles_without_commits;
-
- // Count of useless and useful syncs we perform.
- int useless_sync_cycles;
- int useful_sync_cycles;
-
// Nudge counts for each possible source
int nudge_source_notification;
int nudge_source_local;