| 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 abfa8f85f7898f49e6f46faad8a9ec90756846cd..eb8ce52c5d523786efd37ca10ae417d71787b459 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"
|
| @@ -177,7 +178,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);
|
|
|