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

Unified Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp

Issue 2762663002: BackgroundFetchRegistration.abort() should return a Promise. (Closed)
Patch Set: 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/background_fetch/BackgroundFetchBridge.cpp
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
index ef89640d0c848985c086ad7795aa43295e7fecae..1c1b63f929da9c6481fc3dbb6befd7b1013401b0 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
@@ -68,9 +68,10 @@ BackgroundFetchBridge::BackgroundFetchBridge(
BackgroundFetchBridge::~BackgroundFetchBridge() = default;
-void BackgroundFetchBridge::abort(const String& tag) {
+void BackgroundFetchBridge::abort(const String& tag,
+ std::unique_ptr<AbortCallback> callback) {
getService()->Abort(supplementable()->webRegistration()->registrationId(),
- tag);
+ tag, convertToBaseCallback(std::move(callback)));
}
void BackgroundFetchBridge::updateUI(

Powered by Google App Engine
This is Rietveld 408576698