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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp

Issue 2767093004: Implement the BackgroundFetch{Fail,ed} Service Worker events (Closed)
Patch Set: add missing uma Created 3 years, 9 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/modules/serviceworkers/WaitUntilObserver.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp b/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp
index cab125ef4964e93bddf5ee101c36380d99e44e62..fe670abac682806b3a9d58a55e9f161f29e7ee96 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp
@@ -205,6 +205,14 @@ void WaitUntilObserver::decrementPendingActivity() {
client->didHandleBackgroundFetchClickEvent(m_eventID, result,
m_eventDispatchTime);
break;
+ case BackgroundFetchFail:
+ client->didHandleBackgroundFetchFailEvent(m_eventID, result,
+ m_eventDispatchTime);
+ break;
+ case BackgroundFetched:
+ client->didHandleBackgroundFetchedEvent(m_eventID, result,
+ m_eventDispatchTime);
+ break;
}
m_executionContext = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698