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

Unified Diff: third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h

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
« no previous file with comments | « third_party/WebKit/Source/modules/background_sync/SyncManager.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h
diff --git a/third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h b/third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h
index 3fba5909120c6f4bdeebbde66e9c7d7c8aa59083..880aea4440b1293a3d13b7b711be568990bf7b45 100644
--- a/third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h
+++ b/third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h
@@ -18,12 +18,6 @@ struct WebSyncRegistration {
NetworkStateLast = NetworkStateOnline
};
- enum PowerState {
- PowerStateAuto = 0,
- PowerStateAvoidDraining,
- PowerStateLast = PowerStateAvoidDraining
- };
-
enum { UNREGISTERED_SYNC_ID = -1};
enum Periodicity {
@@ -38,19 +32,17 @@ struct WebSyncRegistration {
, tag("")
, minPeriodMs(0)
, networkState(NetworkState::NetworkStateOnline)
- , powerState(PowerState::PowerStateAuto)
{
}
WebSyncRegistration(int64_t id, Periodicity periodicity,
const WebString& registrationTag, unsigned long minPeriodMs,
- NetworkState networkState, PowerState powerState)
+ NetworkState networkState)
: id(id)
, periodicity(periodicity)
, tag(registrationTag)
, minPeriodMs(minPeriodMs)
, networkState(networkState)
- , powerState(powerState)
{
}
@@ -71,7 +63,6 @@ struct WebSyncRegistration {
unsigned long minPeriodMs;
NetworkState networkState;
- PowerState powerState;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/background_sync/SyncManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698