Bug 1038196 - Give WinWakeLockListener a private destructor; r=bjacob

This commit is contained in:
Ehsan Akhgari 2014-07-15 16:38:31 -04:00
parent 3a52f470bd
commit 50a7cb1524

View File

@ -34,6 +34,8 @@ public:
NS_DECL_ISUPPORTS;
private:
~WinWakeLockListener() {}
NS_IMETHOD Callback(const nsAString& aTopic, const nsAString& aState) {
bool isLocked = mLockedTopics.Contains(aTopic);
bool shouldLock = aState.EqualsLiteral("locked-foreground");