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

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

Issue 2535093003: Worker: Connect UseCounter to workers and worklets (Closed)
Patch Set: remove 'const' qualifiers 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 9f7ca376e2d5a62f93cd4ced7905d285e8d683a3..e8ea148d35c1925ac9fbbdda912a0f0e26c1785e 100644
--- a/third_party/WebKit/Source/core/frame/UseCounter.cpp
+++ b/third_party/WebKit/Source/core/frame/UseCounter.cpp
@@ -1175,15 +1175,15 @@ bool UseCounter::isCounted(Document& document, const String& string) {
return host->useCounter().isCounted(unresolvedProperty);
}
-void UseCounter::count(const ExecutionContext* context, Feature feature) {
+void UseCounter::count(ExecutionContext* context, Feature feature) {
if (!context)
return;
if (context->isDocument()) {
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,
@@ -1203,7 +1203,7 @@ void UseCounter::countIfNotPrivateScript(v8::Isolate* isolate,
}
void UseCounter::countIfNotPrivateScript(v8::Isolate* isolate,
- const ExecutionContext* context,
+ ExecutionContext* context,
Feature feature) {
if (DOMWrapperWorld::current(isolate).isPrivateScriptIsolatedWorld())
return;

Powered by Google App Engine
This is Rietveld 408576698