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

Unified Diff: extensions/browser/api/web_request/web_request_api.cc

Issue 2345433002: Remove Extensions.NetworkDelayStartup histogram (Closed)
Patch Set: Created 4 years, 3 months 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 | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/web_request/web_request_api.cc
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc
index 7c90877236a670dd4ad67a75e75893f300cbc9c6..4e41031658142b0439b2af20b01802ab4d7932fc 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -1614,15 +1614,11 @@ void ExtensionWebRequestEventRouter::DecrementBlockCount(
linked_ptr<helpers::EventResponseDelta>(delta));
}
- base::TimeDelta block_time =
- base::Time::Now() - blocked_request.blocking_time;
if (!extension_id.empty()) {
+ base::TimeDelta block_time =
+ base::Time::Now() - blocked_request.blocking_time;
request_time_tracker_->IncrementExtensionBlockTime(
extension_id, request_id, block_time);
- } else {
- // |extension_id| is empty for requests blocked on startup waiting for the
- // declarative rules to be read from disk.
- UMA_HISTOGRAM_TIMES("Extensions.NetworkDelayStartup", block_time);
}
if (num_handlers_blocking == 0) {
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698