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

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

Issue 1702253002: Log more data reduction proxy config service UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, use boolean histogram Created 4 years, 10 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_interceptor.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
index 1dad66e8b297347ad361d9ae52a83448fdd7663a..90be43e85308dfa7d22cd845d65c580249a713e5 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
@@ -9,6 +9,7 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h"
+#include "net/base/load_timing_info.h"
#include "net/http/http_request_headers.h"
#include "net/http/http_response_headers.h"
#include "net/url_request/url_request.h"
@@ -68,9 +69,12 @@ DataReductionProxyInterceptor::MaybeInterceptResponseOrRedirect(
request->response_info().headers.get();
if (response_headers) {
net::HttpRequestHeaders request_headers;
+ net::LoadTimingInfo load_timing_info;
+ request->GetLoadTimingInfo(&load_timing_info);
if (request->GetFullRequestHeaders(&request_headers)) {
should_retry = config_service_client_->ShouldRetryDueToAuthFailure(
- request_headers, response_headers, request->proxy_server());
+ request_headers, response_headers, request->proxy_server(),
+ load_timing_info);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698