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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc

Issue 338483002: Chrome Participated Tamper Detect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix histograms Created 6 years, 4 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/browser/data_reduction_proxy_protocol.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
index f6b785dca91ab1b53b1c61b0c0ba2f7302496c5e..8ed54adbb9d6a7914b01840f56bcb2d7b2ad6bb7 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.h"
#include "components/data_reduction_proxy/common/data_reduction_proxy_headers.h"
#include "net/base/load_flags.h"
#include "net/http/http_response_headers.h"
@@ -58,6 +59,10 @@ bool MaybeBypassProxyAndPrepareToRetry(
if (data_reduction_proxies.first.is_empty())
return false;
+ DataReductionProxyTamperDetection::DetectAndReport(
+ original_response_headers,
+ data_reduction_proxies.first.SchemeIsSecure());
+
DataReductionProxyInfo data_reduction_proxy_info;
net::ProxyService::DataReductionProxyBypassType bypass_type =
GetDataReductionProxyBypassType(original_response_headers,
« no previous file with comments | « components/data_reduction_proxy.gypi ('k') | components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698