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

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

Issue 2858403002: Extensions: Add UMA to monitor whether a webview request has DWR rules to be evaluated. (Closed)
Patch Set: Clarify histogram description. Created 3 years, 7 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/enums.xml » ('j') | no next file with comments »
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 ea2a7fea7713de6878366df9cf7b61412c991007..334f3f409a0e63a08fa7d65f39fcc265459e73a1 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -1999,6 +1999,13 @@ bool ExtensionWebRequestEventRouter::ProcessDeclarativeRules(
return true;
}
+ if (is_web_view_guest) {
+ const bool has_declarative_rules = !relevant_registries.empty();
+ UMA_HISTOGRAM_BOOLEAN(
+ "Extensions.DeclarativeWebRequest.WebViewRequestDeclarativeRules",
+ has_declarative_rules);
+ }
+
base::Time start = base::Time::Now();
bool deltas_created = false;
« no previous file with comments | « no previous file | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698