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

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

Issue 2261103002: Use modified URLRequest::Read() and delegate methods in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: 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_bypass_stats.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc
index cce040151145eee51ee255b3a9005d46c0e1a3d8..0b7b3fcf3aabc1647d97fa27013c06d75d88fd96 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc
@@ -117,7 +117,9 @@ DataReductionProxyBypassStats::~DataReductionProxyBypassStats() {
}
void DataReductionProxyBypassStats::OnUrlRequestCompleted(
- const net::URLRequest* request, bool started) {
+ const net::URLRequest* request,
+ bool started,
+ int net_error) {
DataReductionProxyTypeInfo proxy_info;
// Ignore requests that did not use the data reduction proxy. The check for
// LOAD_BYPASS_PROXY is necessary because the proxy_server() in the |request|
@@ -126,7 +128,7 @@ void DataReductionProxyBypassStats::OnUrlRequestCompleted(
if (data_reduction_proxy_config_->WasDataReductionProxyUsed(request,
&proxy_info) &&
(request->load_flags() & net::LOAD_BYPASS_PROXY) == 0 &&
- request->status().status() == net::URLRequestStatus::SUCCESS) {
+ net_error == net::OK) {
successful_requests_through_proxy_count_++;
NotifyUnavailabilityIfChanged();

Powered by Google App Engine
This is Rietveld 408576698