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

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

Issue 1617063002: [BackgroundSync Cleanup] Remove power observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Found more 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: third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
diff --git a/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp b/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
index ff4102cb09c21ef664ccd76d803cf55b51ba5f23..1c386039294cd0f71c270a94e348243a92c40925 100644
--- a/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
+++ b/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
@@ -61,8 +61,7 @@ ScriptPromise SyncManager::registerFunction(ScriptState* scriptState, ExecutionC
WebSyncRegistration::PeriodicityOneShot,
tag,
0 /* minPeriod */,
- WebSyncRegistration::NetworkStateOnline /* networkState */,
- WebSyncRegistration::PowerStateAuto /* powerState */
+ WebSyncRegistration::NetworkStateOnline /* networkState */
);
backgroundSyncProvider()->registerBackgroundSync(webSyncRegistration, m_registration->webRegistration(), context->isServiceWorkerGlobalScope(), new SyncRegistrationCallbacks(resolver, m_registration));

Powered by Google App Engine
This is Rietveld 408576698