Changeset 223954 in webkit


Ignore:
Timestamp:
Oct 25, 2017 8:11:07 AM (6 years ago)
Author:
Gustavo Noronha Silva
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r223951 r223954  
     12017-10-25  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Unreviewed follow up changing one more enum value as discussed in the bug
     4        https://bugs.webkit.org/show_bug.cgi?id=177810
     5
     6        * platform/glib/LowPowerModeNotifierGLib.cpp:
     7        (WebCore::LowPowerModeNotifier::updateState): use NONE instead of DISCHARGING, to ensure
     8        it will build even with older upower.
     9
    1102017-10-25  Zan Dobersek  <zdobersek@igalia.com>
    211
  • trunk/Source/WebCore/platform/glib/LowPowerModeNotifierGLib.cpp

    r222835 r223954  
    3737    UpDeviceLevel warningLevel;
    3838    g_object_get(G_OBJECT(m_device.get()), "warning-level", &warningLevel, nullptr);
    39     m_lowPowerModeEnabled = warningLevel > UP_DEVICE_LEVEL_DISCHARGING && warningLevel <= UP_DEVICE_LEVEL_ACTION;
     39    m_lowPowerModeEnabled = warningLevel > UP_DEVICE_LEVEL_NONE && warningLevel <= UP_DEVICE_LEVEL_ACTION;
    4040}
    4141
Note: See TracChangeset for help on using the changeset viewer.