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

Unified Diff: third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp

Issue 2863183003: DevTools: report adding mutation event listener as a violations. (Closed)
Patch Set: same 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
Index: third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
diff --git a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
index 738a0a6d680ac09cd1cb414432e0f2db183a9e60..847f54c899f9df6a24218c945954a264a6cf7558 100644
--- a/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
+++ b/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp
@@ -284,11 +284,8 @@ void PerformanceMonitor::InnerReportGenericViolation(
if (!location)
location = SourceLocation::Capture(context);
for (const auto& it : *client_thresholds) {
- if (it.value < time) {
- if (!location)
- location = SourceLocation::Capture(context);
+ if (it.value < time)
it.key->ReportGenericViolation(violation, text, time, location.get());
- }
}
}
« no previous file with comments | « third_party/WebKit/Source/core/events/EventUtil.cpp ('k') | third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698