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

Unified Diff: chrome/browser/download/download_resource_throttle.cc

Issue 732633002: Adding instrumentation to locate the source of jankiness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke@ comments Created 6 years, 1 month 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 | « no previous file | chrome/browser/net/chrome_fraudulent_certificate_reporter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_resource_throttle.cc
diff --git a/chrome/browser/download/download_resource_throttle.cc b/chrome/browser/download/download_resource_throttle.cc
index 9d9ae92daf0efa8104b9dcb57dc8f80ab277d6bb..d81f0761ead81bf41e45a712c524e33e7fe41205 100644
--- a/chrome/browser/download/download_resource_throttle.cc
+++ b/chrome/browser/download/download_resource_throttle.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/download/download_resource_throttle.h"
#include "base/bind.h"
+#include "base/profiler/scoped_tracker.h"
#include "chrome/browser/download/download_stats.h"
#include "content/public/browser/resource_controller.h"
@@ -39,6 +40,11 @@ void DownloadResourceThrottle::WillRedirectRequest(const GURL& new_url,
}
void DownloadResourceThrottle::WillProcessResponse(bool* defer) {
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "422516 DownloadResourceThrottle::WillProcessResponse"));
+
WillDownload(defer);
}
« no previous file with comments | « no previous file | chrome/browser/net/chrome_fraudulent_certificate_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698