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

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

Issue 2326443004: Fixing redirect through DataReductionProxy logic. (Closed)
Patch Set: tbansal comments Created 4 years, 3 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 dd64de21114a52e7d29c8a5848117322eeeeeebd..1c8a314892a156144a69d9af68ae8d5ba923f386 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
@@ -33,22 +33,22 @@ static const char kHistogramAttempted[] =
// timing and data reduction proxy state.
void AddDataToPageloadMetrics(const DataReductionProxyData& request_data,
const DataReductionProxyPageLoadTiming& timing,
PageloadMetrics* request) {
request->set_session_key(request_data.session_key());
// For the timing events, any of them could be zero. Fill the message as a
// best effort.
request->set_allocated_first_request_time(
protobuf_parser::CreateTimestampFromTime(timing.navigation_start)
.release());
- if (request_data.original_request_url().is_valid())
- request->set_first_request_url(request_data.original_request_url().spec());
+ if (request_data.request_url().is_valid())
+ request->set_first_request_url(request_data.request_url().spec());
if (timing.first_contentful_paint) {
request->set_allocated_time_to_first_contentful_paint(
protobuf_parser::CreateDurationFromTimeDelta(
timing.first_contentful_paint.value())
.release());
}
if (timing.first_image_paint) {
request->set_allocated_time_to_first_image_paint(
protobuf_parser::CreateDurationFromTimeDelta(
timing.first_image_paint.value())

Powered by Google App Engine
This is Rietveld 408576698