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

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

Issue 2762303002: Enable transmitting Fetch Requests over Mojo (Closed)
Patch Set: rebase 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 a0b283e6cf0f7528beb7508bfed29ef2102e6436..c414ca8176c6890c4985eaa451139dea7260d2f1 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchBridge.cpp
@@ -50,10 +50,9 @@ void BackgroundFetchBridge::fetch(
Vector<WebServiceWorkerRequest> requests,
const BackgroundFetchOptions& options,
std::unique_ptr<RegistrationCallback> callback) {
- // TODO(peter): Include |requests| in the Mojo call.
getService()->Fetch(
supplementable()->webRegistration()->registrationId(), tag,
- mojom::blink::BackgroundFetchOptions::From(options),
+ std::move(requests), mojom::blink::BackgroundFetchOptions::From(options),
convertToBaseCallback(
WTF::bind(&BackgroundFetchBridge::didGetRegistration,
wrapPersistent(this), WTF::passed(std::move(callback)))));

Powered by Google App Engine
This is Rietveld 408576698