Title: [223954] trunk/Source/WebCore
- Revision
- 223954
- Author
- g...@gnome.org
- Date
- 2017-10-25 08:11:07 -0700 (Wed, 25 Oct 2017)
Log Message
Unreviewed follow up changing one more enum value as discussed in the bug
https://bugs.webkit.org/show_bug.cgi?id=177810
* platform/glib/LowPowerModeNotifierGLib.cpp:
(WebCore::LowPowerModeNotifier::updateState): use NONE instead of DISCHARGING, to ensure
it will build even with older upower.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (223953 => 223954)
--- trunk/Source/WebCore/ChangeLog 2017-10-25 08:34:13 UTC (rev 223953)
+++ trunk/Source/WebCore/ChangeLog 2017-10-25 15:11:07 UTC (rev 223954)
@@ -1,3 +1,12 @@
+2017-10-25 Gustavo Noronha Silva <gustavo.noro...@collabora.co.uk>
+
+ Unreviewed follow up changing one more enum value as discussed in the bug
+ https://bugs.webkit.org/show_bug.cgi?id=177810
+
+ * platform/glib/LowPowerModeNotifierGLib.cpp:
+ (WebCore::LowPowerModeNotifier::updateState): use NONE instead of DISCHARGING, to ensure
+ it will build even with older upower.
+
2017-10-25 Zan Dobersek <zdober...@igalia.com>
Make SERVICE_WORKER feature buildable on GTK, WPE
Modified: trunk/Source/WebCore/platform/glib/LowPowerModeNotifierGLib.cpp (223953 => 223954)
--- trunk/Source/WebCore/platform/glib/LowPowerModeNotifierGLib.cpp 2017-10-25 08:34:13 UTC (rev 223953)
+++ trunk/Source/WebCore/platform/glib/LowPowerModeNotifierGLib.cpp 2017-10-25 15:11:07 UTC (rev 223954)
@@ -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_ACTION;
+ m_lowPowerModeEnabled = warningLevel > UP_DEVICE_LEVEL_NONE && 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