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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc

Issue 2615493002: Adding compressed bytes to DRP pingback (Closed)
Patch Set: changing proto to int64 instead of recuding to kb Created 3 years, 11 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc
index 89717995175f366fcae44f36fc833ef283ed0591..7b0d644f0b5af717230fd1c8d946bd7ef0cbc6f5 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc
@@ -4,6 +4,8 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.h"
+#include <stdint.h>
+
#include "base/metrics/histogram_macros.h"
#include "base/optional.h"
#include "base/rand_util.h"
@@ -88,6 +90,8 @@ void AddDataToPageloadMetrics(const DataReductionProxyData& request_data,
request->set_effective_connection_type(
protobuf_parser::ProtoEffectiveConnectionTypeFromEffectiveConnectionType(
request_data.effective_connection_type()));
+ request->set_compressed_page_size_bytes(timing.network_bytes);
+ request->set_original_page_size_bytes(timing.original_network_bytes);
}
// Adds |current_time| as the metrics sent time to |request_data|, and returns

Powered by Google App Engine
This is Rietveld 408576698