| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index fc598759a55cd054b1a42bdef9fb241710551f72..bc640f18901dba1661abbbe9f53d8bf27162b17a 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -42,6 +42,7 @@
|
| #include "core/dom/ExecutionContext.h"
|
| #include "core/dom/MessagePort.h"
|
| #include "core/events/MessageEvent.h"
|
| +#include "core/frame/Deprecation.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/UseCounter.h"
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| @@ -458,6 +459,17 @@ void ServiceWorkerContainer::dispatchMessageEvent(
|
| String() /* lastEventId */, source, String() /* suborigin */));
|
| }
|
|
|
| +void ServiceWorkerContainer::countFeature(uint32_t feature) {
|
| + if (!getExecutionContext())
|
| + return;
|
| + UseCounter::Feature useCounterFeature =
|
| + static_cast<UseCounter::Feature>(feature);
|
| + if (Deprecation::deprecationMessage(useCounterFeature).isEmpty())
|
| + UseCounter::count(getExecutionContext(), useCounterFeature);
|
| + else
|
| + Deprecation::countDeprecation(getExecutionContext(), useCounterFeature);
|
| +}
|
| +
|
| const AtomicString& ServiceWorkerContainer::interfaceName() const {
|
| return EventTargetNames::ServiceWorkerContainer;
|
| }
|
|
|