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

Unified Diff: Source/modules/background_sync/PeriodicSyncRegistration.h

Issue 1189473007: Removing Nullable<unsigned long> for PeriodicSyncRegistration::m_minPeriod (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/PeriodicSyncRegistration.h
diff --git a/Source/modules/background_sync/PeriodicSyncRegistration.h b/Source/modules/background_sync/PeriodicSyncRegistration.h
index 5400823eb5227199ca471a50a3f619edaed41fe9..0024a79f0220092e3f8ec47be5ece0c0c03795b6 100644
--- a/Source/modules/background_sync/PeriodicSyncRegistration.h
+++ b/Source/modules/background_sync/PeriodicSyncRegistration.h
@@ -25,19 +25,15 @@ public:
virtual ~PeriodicSyncRegistration();
- bool hasMinPeriod() const { return !m_minPeriod.isNull(); }
- unsigned long minPeriod() const { return m_minPeriod.get(); }
+ unsigned long minPeriod() const { return m_minPeriod; }
void setMinPeriod(unsigned long value) { m_minPeriod = value; }
- bool hasNetworkState() const { return !m_networkState.isNull(); }
String networkState() const { return m_networkState; }
void setNetworkState(String value) { m_networkState = value; }
- bool hasPowerState() const { return !m_powerState.isNull(); }
String powerState() const { return m_powerState; }
void setPowerState(String value) { m_powerState = value; }
- bool hasTag() const { return !m_tag.isNull(); }
String tag() const { return m_tag; }
void setTag(String value) { m_tag = value; }
@@ -49,7 +45,7 @@ private:
PeriodicSyncRegistration(int64_t id, const PeriodicSyncRegistrationOptions&, ServiceWorkerRegistration*);
int64_t m_id;
- Nullable<unsigned long> m_minPeriod;
+ unsigned long m_minPeriod;
String m_networkState;
String m_powerState;
String m_tag;
« 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