Index: net/url_request/url_request_job.cc |
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc |
index 2deb0f5adf74dc0a9c13b5147c35a3d2954b7b8c..2be8a74c3c36c950fb76c47d1663b98a8921a674 100644 |
--- a/net/url_request/url_request_job.cc |
+++ b/net/url_request/url_request_job.cc |
@@ -834,6 +834,11 @@ bool URLRequestJob::ReadRawDataHelper(IOBuffer* buf, int buf_size, |
bool rv = ReadRawData(buf, buf_size, bytes_read); |
if (!request_->status().is_io_pending()) { |
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. |
+ tracked_objects::ScopedTracker tracking_profile1( |
+ FROM_HERE_WITH_EXPLICIT_FUNCTION( |
+ "423948 URLRequestJob::ReadRawDataHelper1")); |
+ |
// If the read completes synchronously, either success or failure, |
// invoke the OnRawReadComplete callback so we can account for the |
// completed read. |
@@ -875,8 +880,14 @@ void URLRequestJob::RecordBytesRead(int bytes_read) { |
<< " pre total = " << prefilter_bytes_read_ |
<< " post total = " << postfilter_bytes_read_; |
UpdatePacketReadTimes(); // Facilitate stats recording if it is active. |
- if (network_delegate_) |
+ if (network_delegate_) { |
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. |
+ tracked_objects::ScopedTracker tracking_profile( |
+ FROM_HERE_WITH_EXPLICIT_FUNCTION( |
+ "423948 URLRequestJob::RecordBytesRead NotifyRawBytesRead")); |
+ |
network_delegate_->NotifyRawBytesRead(*request_, bytes_read); |
+ } |
} |
bool URLRequestJob::FilterHasData() { |