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

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

Issue 2558643005: Worker: Enable UseCounter for MainThreadWorkletGlobalScope (Closed)
Patch Set: fix KURL 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
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/Deprecation.cpp
diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp
index 43d8097e4718c27263903e5d059ef8e55d511684..3369b6a7ed3c0813580b52962b9ed228f3104b37 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -10,7 +10,7 @@
#include "core/frame/FrameHost.h"
#include "core/frame/LocalFrame.h"
#include "core/inspector/ConsoleMessage.h"
-#include "core/workers/WorkerGlobalScope.h"
+#include "core/workers/WorkerOrWorkletGlobalScope.h"
namespace {
@@ -148,8 +148,8 @@ void Deprecation::countDeprecation(ExecutionContext* context,
Deprecation::countDeprecation(*toDocument(context), feature);
return;
}
- if (context->isWorkerGlobalScope())
- toWorkerGlobalScope(context)->countDeprecation(feature);
+ if (context->isWorkerOrWorkletGlobalScope())
+ toWorkerOrWorkletGlobalScope(context)->countDeprecation(feature);
}
void Deprecation::countDeprecation(const Document& document,
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698