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

Unified Diff: net/url_request/report_sender.cc

Issue 2313013002: Revert of Adjust callers and networking delegates in net/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: 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
« no previous file with comments | « net/url_request/report_sender.h ('k') | net/url_request/sdch_dictionary_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/report_sender.cc
diff --git a/net/url_request/report_sender.cc b/net/url_request/report_sender.cc
index 76f171d116a7e68fd19911b0edeace9d99f3ff5a..c91ddd0752daffcc3848ee0f4eab9882235ad695 100644
--- a/net/url_request/report_sender.cc
+++ b/net/url_request/report_sender.cc
@@ -59,13 +59,11 @@
error_callback_ = error_callback;
}
-void ReportSender::OnResponseStarted(URLRequest* request, int net_error) {
- DCHECK_NE(ERR_IO_PENDING, net_error);
-
- if (net_error != OK) {
+void ReportSender::OnResponseStarted(URLRequest* request) {
+ if (!request->status().is_success()) {
DVLOG(1) << "Failed to send report for " << request->url().host();
if (!error_callback_.is_null())
- error_callback_.Run(request->url(), net_error);
+ error_callback_.Run(request->url(), request->status().error());
}
CHECK_GT(inflight_requests_.erase(request), 0u);
« no previous file with comments | « net/url_request/report_sender.h ('k') | net/url_request/sdch_dictionary_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698