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

Unified Diff: Source/modules/background_sync/SyncManager.cpp

Issue 1155243007: [BackgroundSync] One-shots should fire only when online (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/background_sync/SyncManager.cpp
diff --git a/Source/modules/background_sync/SyncManager.cpp b/Source/modules/background_sync/SyncManager.cpp
index bac471a60adb2e57b9dd66221c145251457bae3c..55142cb791b095c45bce096d2cb0fb563dbc727d 100644
--- a/Source/modules/background_sync/SyncManager.cpp
+++ b/Source/modules/background_sync/SyncManager.cpp
@@ -53,7 +53,7 @@ ScriptPromise SyncManager::registerFunction(ScriptState* scriptState, const Sync
WebSyncRegistration::PeriodicityOneShot,
options.tag(),
0 /* minPeriod */,
- WebSyncRegistration::NetworkStateAny /* networkState */,
+ WebSyncRegistration::NetworkStateOnline /* networkState */,
WebSyncRegistration::PowerStateAuto /* powerState */
);
backgroundSyncProvider()->registerBackgroundSync(webSyncRegistration, m_registration->webRegistration(), new SyncRegistrationCallbacks(resolver, m_registration));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698