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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp

Issue 2582483002: Worker: Enable UseCounter for ThreadedWorkletGlobalScope (Closed)
Patch Set: rename threadHolderInstance to workletThreadHolder 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/workers/InProcessWorkerObjectProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
index 0a5aa0915d116f5c9ec01e236d03b54b717dfed8..e3b386a9bf17ecbe3c434f179c001cc9b4568ff0 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
@@ -96,27 +96,6 @@ void InProcessWorkerObjectProxy::startPendingActivityTimer() {
m_nextIntervalInSec = std::min(m_nextIntervalInSec * 1.5, m_maxIntervalInSec);
}
-void InProcessWorkerObjectProxy::countFeature(UseCounter::Feature feature) {
- // TODO(nhiroki): Move this to ThreadedObjectProxyBase so that
- // ThreadedWorklets can record API use (https://crbug.com/667357).
- getParentFrameTaskRunners()
- ->get(TaskType::Internal)
- ->postTask(BLINK_FROM_HERE,
- crossThreadBind(&InProcessWorkerMessagingProxy::countFeature,
- m_messagingProxyWeakPtr, feature));
-}
-
-void InProcessWorkerObjectProxy::countDeprecation(UseCounter::Feature feature) {
- // TODO(nhiroki): Move this to ThreadedObjectProxyBase so that
- // ThreadedWorklets can record API use (https://crbug.com/667357).
- getParentFrameTaskRunners()
- ->get(TaskType::Internal)
- ->postTask(
- BLINK_FROM_HERE,
- crossThreadBind(&InProcessWorkerMessagingProxy::countDeprecation,
- m_messagingProxyWeakPtr, feature));
-}
-
void InProcessWorkerObjectProxy::reportException(
const String& errorMessage,
std::unique_ptr<SourceLocation> location,

Powered by Google App Engine
This is Rietveld 408576698