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

Unified Diff: net/url_request/url_request.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/udp/udp_socket_win.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index c61a14b3bac939e6dc727fdeb7d4be18cd7dc43c..132a67d779898c3f88ee105414cb3a4f915fe09b 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -768,9 +768,18 @@ bool URLRequest::Read(IOBuffer* dest, int dest_size, int* bytes_read) {
return true;
}
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed.
+ tracked_objects::ScopedTracker tracking_profile1(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION("423948 URLRequest::Read1"));
+
bool rv = job_->Read(dest, dest_size, bytes_read);
// If rv is false, the status cannot be success.
DCHECK(rv || status_.status() != URLRequestStatus::SUCCESS);
+
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed.
+ tracked_objects::ScopedTracker tracking_profile2(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION("423948 URLRequest::Read2"));
+
if (rv && *bytes_read <= 0 && status_.is_success())
NotifyRequestCompleted();
return rv;
« no previous file with comments | « net/udp/udp_socket_win.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698