| 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());
|
| - }
|
| }
|
| }
|
|
|
|
|