Index: chrome/browser/sync/engine/syncer_proto_util.cc |
diff --git a/chrome/browser/sync/engine/syncer_proto_util.cc b/chrome/browser/sync/engine/syncer_proto_util.cc |
index d0712b51fb94fd313db2f37b770261abe2e2d9cf..68a80fad7011d3f42abe6db43d17bcbcbb3f443d 100644 |
--- a/chrome/browser/sync/engine/syncer_proto_util.cc |
+++ b/chrome/browser/sync/engine/syncer_proto_util.cc |
@@ -5,10 +5,12 @@ |
#include "chrome/browser/sync/engine/syncer_proto_util.h" |
#include "base/format_macros.h" |
+#include "base/json/json_writer.h" |
#include "base/stringprintf.h" |
#include "chrome/browser/sync/engine/net/server_connection_manager.h" |
#include "chrome/browser/sync/engine/syncer.h" |
#include "chrome/browser/sync/engine/syncer_types.h" |
+#include "chrome/browser/sync/protocol/proto_value_conversions.h" |
#include "chrome/browser/sync/protocol/service_constants.h" |
#include "chrome/browser/sync/protocol/sync.pb.h" |
#include "chrome/browser/sync/protocol/sync_enums.pb.h" |
@@ -337,6 +339,7 @@ SyncerError SyncerProtoUtil::PostClientToServerMessage( |
syncable::Directory* dir = session->context()->directory(); |
+ LogClientToServerMessage(msg); |
if (!PostAndProcessHeaders(session->context()->connection_manager(), session, |
msg, response)) { |
// There was an error establishing communication with the server. |
@@ -350,6 +353,8 @@ SyncerError SyncerProtoUtil::PostClientToServerMessage( |
return ServerConnectionErrorAsSyncerError(server_status); |
} |
+ LogClientToServerResponse(*response); |
+ |
browser_sync::SyncProtocolError sync_protocol_error; |
// Birthday mismatch overrides any error that is sent by the server. |