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

Unified Diff: content/child/blink_platform_impl.cc

Issue 2473483012: Move content/child/background_sync to Blink. (Closed)
Patch Set: Fix nits Created 4 years, 1 month 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/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index aa9951d14bd30f5ab86a8ffbac2039ca87ae1ff7..86e22ad565885130419ba1724b03bd6c7af239e0 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -37,7 +37,6 @@
#include "components/mime_util/mime_util.h"
#include "content/app/resources/grit/content_resources.h"
#include "content/app/strings/grit/content_strings.h"
-#include "content/child/background_sync/background_sync_provider.h"
#include "content/child/child_thread_impl.h"
#include "content/child/content_child_helpers.h"
#include "content/child/notifications/notification_dispatcher.h"
@@ -389,8 +388,6 @@ void BlinkPlatformImpl::InternalInit() {
notification_dispatcher_ =
ChildThreadImpl::current()->notification_dispatcher();
push_dispatcher_ = ChildThreadImpl::current()->push_dispatcher();
- main_thread_sync_provider_.reset(
- new BackgroundSyncProvider(main_thread_task_runner_.get()));
}
}
@@ -774,14 +771,6 @@ blink::WebPushProvider* BlinkPlatformImpl::pushProvider() {
push_dispatcher_.get());
}
-blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() {
- if (IsMainThread())
- return main_thread_sync_provider_.get();
-
- return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance(
- main_thread_task_runner_.get());
-}
-
WebThemeEngine* BlinkPlatformImpl::themeEngine() {
return &native_theme_engine_;
}
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/service_worker/web_service_worker_registration_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698