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

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

Issue 1358063004: Use mojo to connect to BackgroundSyncManager object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make platform impl control cleanup of main thread provider Created 5 years, 2 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 d19bcfbfaa9187d8a316247f41eaf2c2863aef6d..c044816004453c5f49a70caf5800ac42b120dcfc 100644
--- a/content/renderer/background_sync/background_sync_client_impl.cc
+++ b/content/renderer/background_sync/background_sync_client_impl.cc
@@ -4,7 +4,7 @@
#include "content/renderer/background_sync/background_sync_client_impl.h"
-#include "content/child/background_sync/background_sync_provider_thread_proxy.h"
+#include "content/child/background_sync/background_sync_provider.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/Platform.h"
@@ -38,9 +38,8 @@ void BackgroundSyncClientImpl::Sync(int64_t handle_id,
// it.
// TODO(jkarlin): Change the WebSyncPlatform to support
// DuplicateRegistrationHandle and then this cast can go.
- BackgroundSyncProviderThreadProxy* provider =
- static_cast<BackgroundSyncProviderThreadProxy*>(
- blink::Platform::current()->backgroundSyncProvider());
+ BackgroundSyncProvider* provider = static_cast<BackgroundSyncProvider*>(
+ blink::Platform::current()->backgroundSyncProvider());
DCHECK(provider);
// TODO(jkarlin): Find a way to claim the handle safely without requiring a

Powered by Google App Engine
This is Rietveld 408576698