| Index: content/browser/background_sync/background_sync_manager.cc
|
| diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
|
| index 6ba38b57924d1e0dbe2ded9e8775ea56e176531d..018bbae5ab270ecfc3905a191a9fbb48dd63cb93 100644
|
| --- a/content/browser/background_sync/background_sync_manager.cc
|
| +++ b/content/browser/background_sync/background_sync_manager.cc
|
| @@ -73,7 +73,6 @@
|
| void BackgroundSyncManager::Register(
|
| int64 sw_registration_id,
|
| const BackgroundSyncRegistrationOptions& options,
|
| - bool requested_from_service_worker,
|
| const StatusAndRegistrationCallback& callback) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| @@ -94,10 +93,10 @@
|
| return;
|
| }
|
|
|
| - op_scheduler_.ScheduleOperation(base::Bind(
|
| - &BackgroundSyncManager::RegisterImpl, weak_ptr_factory_.GetWeakPtr(),
|
| - sw_registration_id, options, requested_from_service_worker,
|
| - MakeStatusAndRegistrationCompletion(callback)));
|
| + op_scheduler_.ScheduleOperation(
|
| + base::Bind(&BackgroundSyncManager::RegisterImpl,
|
| + weak_ptr_factory_.GetWeakPtr(), sw_registration_id, options,
|
| + MakeStatusAndRegistrationCompletion(callback)));
|
| }
|
|
|
| void BackgroundSyncManager::Unregister(
|
| @@ -302,7 +301,6 @@
|
| void BackgroundSyncManager::RegisterImpl(
|
| int64 sw_registration_id,
|
| const BackgroundSyncRegistrationOptions& options,
|
| - bool requested_from_service_worker,
|
| const StatusAndRegistrationCallback& callback) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| @@ -337,8 +335,7 @@
|
| return;
|
| }
|
|
|
| - if (requested_from_service_worker &&
|
| - !sw_registration->active_version()->HasWindowClients()) {
|
| + if (!sw_registration->active_version()->HasWindowClients()) {
|
| base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| FROM_HERE, base::Bind(callback, BACKGROUND_SYNC_STATUS_NOT_ALLOWED,
|
| BackgroundSyncRegistration()));
|
|
|