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

Unified Diff: content/renderer/background_sync/background_sync_client_impl.cc

Issue 1230213004: [Background Sync] Sent sync registration details to worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bgsync-event-mek
Patch Set: Remove const ref from mojo StructPtr (with rebase) Created 5 years, 5 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: content/renderer/background_sync/background_sync_client_impl.cc
diff --git a/content/renderer/background_sync/background_sync_client_impl.cc b/content/renderer/background_sync/background_sync_client_impl.cc
index 997b47650adfab276f505bedbbfbc03a8fc7dc6b..2eb1c40019da279279e19a5813eef0786524426b 100644
--- a/content/renderer/background_sync/background_sync_client_impl.cc
+++ b/content/renderer/background_sync/background_sync_client_impl.cc
@@ -4,7 +4,9 @@
#include "content/renderer/background_sync/background_sync_client_impl.h"
+#include "content/child/background_sync/background_sync_type_converters.h"
#include "content/renderer/service_worker/service_worker_context_client.h"
+#include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h"
namespace content {
@@ -28,7 +30,9 @@ void BackgroundSyncClientImpl::Sync(content::SyncRegistrationPtr registration,
callback.Run(SERVICE_WORKER_EVENT_STATUS_ABORTED);
return;
}
- client->DispatchSyncEvent(callback);
+ scoped_ptr<blink::WebSyncRegistration> reg =
+ mojo::ConvertTo<scoped_ptr<blink::WebSyncRegistration>>(registration);
+ client->DispatchSyncEvent(*reg, callback);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698