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

Unified Diff: content/child/background_sync/background_sync_provider.cc

Issue 1614063002: [BackgroundSync Cleanup] Remove periodic sync code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@purge_power
Patch Set: Address comments from PS3 Created 4 years, 11 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/child/background_sync/background_sync_provider.cc
diff --git a/content/child/background_sync/background_sync_provider.cc b/content/child/background_sync/background_sync_provider.cc
index 98958201beb35bd42eeb85b7e69348c6a44fc9da..9975246c158959b036356ad652e8907d8d9e584b 100644
--- a/content/child/background_sync/background_sync_provider.cc
+++ b/content/child/background_sync/background_sync_provider.cc
@@ -127,7 +127,6 @@ void BackgroundSyncProvider::unregisterBackgroundSync(
}
void BackgroundSyncProvider::getRegistration(
- blink::WebSyncRegistration::Periodicity periodicity,
const blink::WebString& tag,
blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebSyncRegistrationCallbacks* callbacks) {
@@ -140,15 +139,13 @@ void BackgroundSyncProvider::getRegistration(
// base::Unretained is safe here, as the mojo channel will be deleted (and
// will wipe its callbacks) before 'this' is deleted.
GetBackgroundSyncServicePtr()->GetRegistration(
- mojo::ConvertTo<BackgroundSyncPeriodicity>(periodicity), tag.utf8(),
- service_worker_registration_id,
+ tag.utf8(), service_worker_registration_id,
base::Bind(&BackgroundSyncProvider::GetRegistrationCallback,
base::Unretained(this),
base::Passed(std::move(callbacksPtr))));
}
void BackgroundSyncProvider::getRegistrations(
- blink::WebSyncRegistration::Periodicity periodicity,
blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebSyncGetRegistrationsCallbacks* callbacks) {
DCHECK(service_worker_registration);
@@ -160,7 +157,6 @@ void BackgroundSyncProvider::getRegistrations(
// base::Unretained is safe here, as the mojo channel will be deleted (and
// will wipe its callbacks) before 'this' is deleted.
GetBackgroundSyncServicePtr()->GetRegistrations(
- mojo::ConvertTo<BackgroundSyncPeriodicity>(periodicity),
service_worker_registration_id,
base::Bind(&BackgroundSyncProvider::GetRegistrationsCallback,
base::Unretained(this),
@@ -168,7 +164,6 @@ void BackgroundSyncProvider::getRegistrations(
}
void BackgroundSyncProvider::getPermissionStatus(
- blink::WebSyncRegistration::Periodicity periodicity,
blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebSyncGetPermissionStatusCallbacks* callbacks) {
DCHECK(service_worker_registration);
@@ -181,7 +176,6 @@ void BackgroundSyncProvider::getPermissionStatus(
// base::Unretained is safe here, as the mojo channel will be deleted (and
// will wipe its callbacks) before 'this' is deleted.
GetBackgroundSyncServicePtr()->GetPermissionStatus(
- mojo::ConvertTo<BackgroundSyncPeriodicity>(periodicity),
service_worker_registration_id,
base::Bind(&BackgroundSyncProvider::GetPermissionStatusCallback,
base::Unretained(this),

Powered by Google App Engine
This is Rietveld 408576698