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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 2339083002: Use InstallEvent even if ForeignFetch is disabled (Closed)
Patch Set: fix global-interface-listing-service-worker-expected.txt Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/InstallEvent.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8f17765e4d18fa2bba7266e1cd5a6a8c15bd63a4..3f934a8a6532a92a5e4d9999d69c57a842474368 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -189,11 +189,7 @@ void ServiceWorkerGlobalScopeProxy::dispatchForeignFetchEvent(int responseID, in
void ServiceWorkerGlobalScopeProxy::dispatchInstallEvent(int eventID)
{
WaitUntilObserver* observer = WaitUntilObserver::create(workerGlobalScope(), WaitUntilObserver::Install, eventID);
- Event* event;
- if (OriginTrials::foreignFetchEnabled(workerGlobalScope()))
- event = InstallEvent::create(EventTypeNames::install, ExtendableEventInit(), observer);
- else
- event = ExtendableEvent::create(EventTypeNames::install, ExtendableEventInit(), observer);
+ Event* event = InstallEvent::create(EventTypeNames::install, ExtendableEventInit(), observer);
workerGlobalScope()->dispatchExtendableEvent(event, observer);
}
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/InstallEvent.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698