Index: third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp b/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp |
index dd43f21e7c08ebb54618f63d4adb24b6bc48f2b4..35c3fefced7e6f9418c08aabd6737f34f7720bc8 100644 |
--- a/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp |
@@ -96,6 +96,13 @@ class SharedWorkerConnectListener final |
void connected() override { m_worker->setIsBeingConnected(false); } |
+ void countFeature(uint32_t feature) override { |
+ static_assert(UseCounter::NumberOfFeatures < UINT32_MAX, |
+ "uint32_t must be larger than number of features"); |
+ UseCounter::count(m_worker->getExecutionContext(), |
+ static_cast<UseCounter::Feature>(feature)); |
+ } |
+ |
Persistent<SharedWorker> m_worker; |
}; |