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

Unified Diff: sync/engine/syncer_proto_util.cc

Issue 9732008: [Sync] Store the past 10 traffic records in memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 years, 9 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
« no previous file with comments | « no previous file | sync/engine/traffic_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/syncer_proto_util.cc
diff --git a/sync/engine/syncer_proto_util.cc b/sync/engine/syncer_proto_util.cc
index 5051b82a02ee9753e7b9641608c77493123c7607..141c7e9343f463d771bde1583bf26a7afc33d400 100644
--- a/sync/engine/syncer_proto_util.cc
+++ b/sync/engine/syncer_proto_util.cc
@@ -339,6 +339,7 @@ SyncerError SyncerProtoUtil::PostClientToServerMessage(
syncable::Directory* dir = session->context()->directory();
LogClientToServerMessage(msg);
+ session->context()->traffic_recorder()->RecordClientToServerMessage(msg);
if (!PostAndProcessHeaders(session->context()->connection_manager(), session,
msg, response)) {
// There was an error establishing communication with the server.
@@ -353,6 +354,8 @@ SyncerError SyncerProtoUtil::PostClientToServerMessage(
}
LogClientToServerResponse(*response);
+ session->context()->traffic_recorder()->RecordClientToServerResponse(
+ *response);
browser_sync::SyncProtocolError sync_protocol_error;
« no previous file with comments | « no previous file | sync/engine/traffic_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698