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

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 review. 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') | sync/engine/traffic_recorder.cc » ('J')
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 b1ed209c7fc473c0400d1563d3262aedd51bc829..5f2a74bd3b4dd0c26cf78820b4d9e537152c08ae 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') | sync/engine/traffic_recorder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698