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

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

Issue 2535093003: Worker: Connect UseCounter to workers and worklets (Closed)
Patch Set: Created 4 years 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/UseCounter.cpp
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.cpp b/third_party/WebKit/Source/core/frame/UseCounter.cpp
index 2cbb53d3846cd2556310cd3cf5b033dab8e7523a..2ac6a5e0ab5d9199d00f93ea3b76f261767d1926 100644
--- a/third_party/WebKit/Source/core/frame/UseCounter.cpp
+++ b/third_party/WebKit/Source/core/frame/UseCounter.cpp
@@ -1180,8 +1180,8 @@ void UseCounter::count(const ExecutionContext* context, Feature feature) {
count(*toDocument(context), feature);
return;
}
- if (context->isWorkerGlobalScope())
- toWorkerGlobalScope(context)->countFeature(feature);
+ if (context->isWorkerOrWorkletGlobalScope())
+ toWorkerOrWorkletGlobalScope(context)->countFeature(feature);
}
void UseCounter::countIfNotPrivateScript(v8::Isolate* isolate,

Powered by Google App Engine
This is Rietveld 408576698