| 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 877b518692099f2b547167140ad9905c45515ea3..40b3026d47ec1703bf8ac00c9ac8d260260a5695 100644
|
| --- a/content/browser/background_sync/background_sync_manager.cc
|
| +++ b/content/browser/background_sync/background_sync_manager.cc
|
| @@ -47,9 +47,6 @@ namespace {
|
| // The key used to index the background sync data in ServiceWorkerStorage.
|
| const char kBackgroundSyncUserDataKey[] = "BackgroundSyncUserData";
|
|
|
| -// The amount of time that a sync event can fire for, in seconds.
|
| -const int kSyncEventSec = 3 * 60; // 3 minutes
|
| -
|
| void PostErrorResponse(
|
| BackgroundSyncStatus status,
|
| const BackgroundSyncManager::StatusAndRegistrationCallback& callback) {
|
| @@ -778,9 +775,8 @@ void BackgroundSyncManager::FireOneShotSync(
|
| // with the registration so don't give it a BackgroundSyncRegistrationHandle.
|
| // Once the render process gets the handle_id it can create its own handle
|
| // (with a new unique handle id).
|
| - active_version->DispatchSyncEvent(handle_id, last_chance,
|
| - base::TimeDelta::FromSeconds(kSyncEventSec),
|
| - callback);
|
| + active_version->DispatchSyncEvent(
|
| + handle_id, last_chance, parameters_->max_sync_event_duration, callback);
|
| }
|
|
|
| void BackgroundSyncManager::ScheduleDelayedTask(const base::Closure& callback,
|
|
|