Index: net/url_request/url_request_http_job.cc |
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc |
index a53bbab7d6848682eb26bdaaf98e7841b5f9154d..4261b9227fe2e903f187f0575c8bb263ae82d81e 100644 |
--- a/net/url_request/url_request_http_job.cc |
+++ b/net/url_request/url_request_http_job.cc |
@@ -13,6 +13,7 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/metrics/field_trial.h" |
#include "base/metrics/histogram.h" |
+#include "base/profiler/scoped_tracker.h" |
#include "base/rand_util.h" |
#include "base/strings/string_util.h" |
#include "base/time/time.h" |
@@ -334,7 +335,7 @@ void URLRequestHttpJob::NotifyHeadersComplete() { |
// Resolve suggested URL relative to request url. |
GURL sdch_dictionary_url = request_->url().Resolve(url_text); |
if (sdch_dictionary_url.is_valid()) { |
- sdch_manager->FetchDictionary(request_->url(), sdch_dictionary_url); |
+ sdch_manager->OnGetDictionary(request_->url(), sdch_dictionary_url); |
} |
} |
} |
@@ -783,6 +784,11 @@ void URLRequestHttpJob::ProcessPublicKeyPinsHeader() { |
} |
void URLRequestHttpJob::OnStartCompleted(int result) { |
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. |
+ tracked_objects::ScopedTracker tracking_profile( |
+ FROM_HERE_WITH_EXPLICIT_FUNCTION( |
+ "424359 URLRequestHttpJob::OnStartCompleted")); |
+ |
RecordTimer(); |
// If the request was destroyed, then there is no more work to do. |
@@ -886,6 +892,11 @@ void URLRequestHttpJob::OnHeadersReceivedCallback(int result) { |
} |
void URLRequestHttpJob::OnReadCompleted(int result) { |
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. |
+ tracked_objects::ScopedTracker tracking_profile( |
+ FROM_HERE_WITH_EXPLICIT_FUNCTION( |
+ "424359 URLRequestHttpJob::OnReadCompleted")); |
+ |
read_in_progress_ = false; |
if (ShouldFixMismatchedContentLength(result)) |