| Index: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
|
| index 5a9d71fb75063c7ea70baf978b181de4b6595559..b4b4d926b50f296a42d78ab1baf888cb38269fb1 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
|
| @@ -50,6 +50,7 @@
|
| #include "core/loader/FrameLoader.h"
|
| #include "core/loader/FrameLoaderClient.h"
|
| #include "core/loader/NetworkHintsInterface.h"
|
| +#include "core/origin_trials/OriginTrials.h"
|
| #include "core/style/StyleInheritedData.h"
|
| #include "platform/ContentType.h"
|
| #include "platform/Histogram.h"
|
| @@ -153,7 +154,7 @@ LinkResource* HTMLLinkElement::linkResourceToProcess()
|
| m_link = LinkImport::create(this);
|
| } else if (m_relAttribute.isManifest()) {
|
| m_link = LinkManifest::create(this);
|
| - } else if (RuntimeEnabledFeatures::linkServiceWorkerEnabled() && m_relAttribute.isServiceWorker()) {
|
| + } else if (m_relAttribute.isServiceWorker() && OriginTrials::linkServiceWorkerEnabled(getExecutionContext())) {
|
| if (document().frame())
|
| m_link = document().frame()->loader().client()->createServiceWorkerLinkResource(this);
|
| } else {
|
|
|