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

Unified Diff: chrome/browser/extensions/chrome_url_request_util.cc

Issue 702543005: Instrumenting copying string returned by GetRawDataResource to locate the source of jankiness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/chrome_url_request_util.cc
diff --git a/chrome/browser/extensions/chrome_url_request_util.cc b/chrome/browser/extensions/chrome_url_request_util.cc
index 660462974d6eaf4fb1059b88d642a791e125dac0..c89350aa3d05dbd19cc41baa9980db278d61b5b7 100644
--- a/chrome/browser/extensions/chrome_url_request_util.cc
+++ b/chrome/browser/extensions/chrome_url_request_util.cc
@@ -75,7 +75,15 @@ class URLRequestResourceBundleJob : public net::URLRequestSimpleJob {
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422489 URLRequestResourceBundleJob::GetData 1"));
- *data = rb.GetRawDataResource(resource_id_).as_string();
+ const base::StringPiece resource_as_string_piece =
+ rb.GetRawDataResource(resource_id_);
+
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed.
+ tracked_objects::ScopedTracker tracking_profile15(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "422489 URLRequestResourceBundleJob::GetData 1.5"));
+
+ *data = resource_as_string_piece.as_string();
// TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed.
tracked_objects::ScopedTracker tracking_profile2(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698