| Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| index c664b86f812d080e1168cc66fbed4dd6aaa652ed..29f142fc910f49ce19b295a1ee9c7397ca4ee733 100644
|
| --- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| +++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| @@ -37,6 +37,7 @@
|
| #include "core/dom/ExecutionContext.h"
|
| #include "core/dom/MessagePort.h"
|
| #include "core/inspector/ConsoleMessage.h"
|
| +#include "core/origin_trials/OriginTrials.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| #include "core/workers/WorkerThread.h"
|
| #include "modules/background_sync/SyncEvent.h"
|
| @@ -175,7 +176,7 @@ void ServiceWorkerGlobalScopeProxy::dispatchInstallEvent(int eventID)
|
| {
|
| WaitUntilObserver* observer = WaitUntilObserver::create(workerGlobalScope(), WaitUntilObserver::Install, eventID);
|
| Event* event;
|
| - if (RuntimeEnabledFeatures::foreignFetchEnabled())
|
| + if (OriginTrials::foreignFetchEnabled(workerGlobalScope()))
|
| event = InstallEvent::create(EventTypeNames::install, ExtendableEventInit(), observer);
|
| else
|
| event = ExtendableEvent::create(EventTypeNames::install, ExtendableEventInit(), observer);
|
|
|