Changeset 127436 in webkit


Ignore:
Timestamp:
Sep 3, 2012 6:44:41 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Fix e_dbus_shutdown() error when exiting the Minibrowser
https://bugs.webkit.org/show_bug.cgi?id=95636

Patch by Jinwoo Song <jinwoo7.song@samsung.com> on 2012-09-03
Reviewed by Gyuyoung Kim.

Source/WebCore:

Check if the m_timer is active in stopUpdating()
to know the BatteryProvider is updating or not.
By checking the timer, stopUpdating() will be called
only BatteryProviderEfl is updating.

  • platform/efl/BatteryProviderEfl.cpp:

(WebCore::BatteryProviderEfl::stopUpdating):

Source/WebKit/efl:

Invoke stopUpdating() in the destructor of BatteryClinetEfl()
to call e_ukit_shutdown() and e_dbus_shutdown() if and when
stopUpdating() has not been called explicitly.

  • WebCoreSupport/BatteryClientEfl.cpp:

(BatteryClientEfl::~BatteryClientEfl):

  • WebCoreSupport/BatteryClientEfl.h:

(BatteryClientEfl):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r127429 r127436  
     12012-09-03  Jinwoo Song  <jinwoo7.song@samsung.com>
     2
     3        [EFL] Fix e_dbus_shutdown() error when exiting the Minibrowser
     4        https://bugs.webkit.org/show_bug.cgi?id=95636
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Check if the m_timer is active in stopUpdating()
     9        to know the BatteryProvider is updating or not.
     10        By checking the timer, stopUpdating() will be called
     11        only BatteryProviderEfl is updating.
     12
     13        * platform/efl/BatteryProviderEfl.cpp:
     14        (WebCore::BatteryProviderEfl::stopUpdating):
     15
    1162012-09-03  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Source/WebCore/platform/efl/BatteryProviderEfl.cpp

    r124552 r127436  
    6060void BatteryProviderEfl::stopUpdating()
    6161{
     62    if (!m_timer.isActive())
     63        return;
     64
    6265    m_timer.stop();
    6366    e_ukit_shutdown();
  • trunk/Source/WebKit/efl/ChangeLog

    r127419 r127436  
     12012-09-03  Jinwoo Song  <jinwoo7.song@samsung.com>
     2
     3        [EFL] Fix e_dbus_shutdown() error when exiting the Minibrowser
     4        https://bugs.webkit.org/show_bug.cgi?id=95636
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Invoke stopUpdating() in the destructor of BatteryClinetEfl()
     9        to call e_ukit_shutdown() and e_dbus_shutdown() if and when
     10        stopUpdating() has not been called explicitly.
     11
     12        * WebCoreSupport/BatteryClientEfl.cpp:
     13        (BatteryClientEfl::~BatteryClientEfl):
     14        * WebCoreSupport/BatteryClientEfl.h:
     15        (BatteryClientEfl):
     16
    1172012-09-03  Jinwoo Song  <jinwoo7.song@samsung.com>
    218
  • trunk/Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.cpp

    r122743 r127436  
    3333}
    3434
     35BatteryClientEfl::~BatteryClientEfl()
     36{
     37    m_provider.stopUpdating();
     38}
     39
    3540void BatteryClientEfl::startUpdating()
    3641{
  • trunk/Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.h

    r122743 r127436  
    3737public:
    3838    explicit BatteryClientEfl(Evas_Object* view);
    39     virtual ~BatteryClientEfl() { }
     39    virtual ~BatteryClientEfl();
    4040
    4141    // BatteryClient interface.
Note: See TracChangeset for help on using the changeset viewer.