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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp

Issue 2116503004: Make Foreign Fetch an origin trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 months 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/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 {

Powered by Google App Engine
This is Rietveld 408576698