Title: [222835] trunk/Source/WebCore
- Revision
- 222835
- Author
- g...@gnome.org
- Date
- 2017-10-04 01:38:23 -0700 (Wed, 04 Oct 2017)
Log Message
Unreviewed build fix.
Use different enum value for the check. UP_DEVICE_LEVEL_NORMAL is only available on newer
upower.
* platform/glib/LowPowerModeNotifierGLib.cpp:
(WebCore::LowPowerModeNotifier::updateState):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (222834 => 222835)
--- trunk/Source/WebCore/ChangeLog 2017-10-04 07:46:25 UTC (rev 222834)
+++ trunk/Source/WebCore/ChangeLog 2017-10-04 08:38:23 UTC (rev 222835)
@@ -1,3 +1,13 @@
+2017-10-04 Gustavo Noronha Silva <gustavo.noro...@collabora.co.uk>
+
+ Unreviewed build fix.
+
+ Use different enum value for the check. UP_DEVICE_LEVEL_NORMAL is only available on newer
+ upower.
+
+ * platform/glib/LowPowerModeNotifierGLib.cpp:
+ (WebCore::LowPowerModeNotifier::updateState):
+
2017-10-03 Gustavo Noronha Silva <gustavo.noro...@collabora.co.uk>
[GLib] Let WebCore know of low power situations
Modified: trunk/Source/WebCore/platform/glib/LowPowerModeNotifierGLib.cpp (222834 => 222835)
--- trunk/Source/WebCore/platform/glib/LowPowerModeNotifierGLib.cpp 2017-10-04 07:46:25 UTC (rev 222834)
+++ trunk/Source/WebCore/platform/glib/LowPowerModeNotifierGLib.cpp 2017-10-04 08:38:23 UTC (rev 222835)
@@ -36,7 +36,7 @@
{
UpDeviceLevel warningLevel;
g_object_get(G_OBJECT(m_device.get()), "warning-level", &warningLevel, nullptr);
- m_lowPowerModeEnabled = warningLevel > UP_DEVICE_LEVEL_DISCHARGING && warningLevel < UP_DEVICE_LEVEL_NORMAL;
+ m_lowPowerModeEnabled = warningLevel > UP_DEVICE_LEVEL_DISCHARGING && warningLevel <= UP_DEVICE_LEVEL_ACTION;
}
void LowPowerModeNotifier::warningLevelCallback(LowPowerModeNotifier* notifier)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes