From de4963c3f017007f36853564f4ed2ccbf299f454 Mon Sep 17 00:00:00 2001 From: "rlarocque@chromium.org" Date: Sat, 24 Mar 2012 02:17:30 +0000 Subject: sync: Count and report reflected updates Many of the updates a sync client receives are echoes of its own changes. This patch attempts to count how often these updates are received by comparing the version of downloaded updates against the local version. These counts are exposed locally through AllStatus/about:sync. We also upload this information to the server through the ClientDebugInfo mechanism. BUG=117565 TEST= Review URL: http://codereview.chromium.org/9702083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128659 0039d316-1c4b-4281-b951-d872f2087c98 --- net/tools/testserver/chromiumsync.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net/tools') diff --git a/net/tools/testserver/chromiumsync.py b/net/tools/testserver/chromiumsync.py index 752d6a4..d789bcb 100755 --- a/net/tools/testserver/chromiumsync.py +++ b/net/tools/testserver/chromiumsync.py @@ -23,6 +23,7 @@ import app_setting_specifics_pb2 import app_specifics_pb2 import autofill_specifics_pb2 import bookmark_specifics_pb2 +import get_updates_caller_info_pb2 import extension_setting_specifics_pb2 import extension_specifics_pb2 import nigori_specifics_pb2 @@ -216,8 +217,9 @@ def SyncTypeToString(data_type): def CallerInfoToString(caller_info_source): """Formats a GetUpdatesSource enum value to a readable string.""" - return sync_pb2.GetUpdatesCallerInfo.DESCRIPTOR.enum_types_by_name[ - 'GetUpdatesSource'].values_by_number[caller_info_source].name + return get_updates_caller_info_pb2.GetUpdatesCallerInfo \ + .DESCRIPTOR.enum_types_by_name['GetUpdatesSource'] \ + .values_by_number[caller_info_source].name def ShortDatatypeListSummary(data_types): -- cgit v1.1