| Index: third_party/WebKit/Source/modules/battery/BatteryManager.cpp
|
| diff --git a/third_party/WebKit/Source/modules/battery/BatteryManager.cpp b/third_party/WebKit/Source/modules/battery/BatteryManager.cpp
|
| index 885ac957fdd03a3bd2e38570f73c8f8c98725e2e..694dac1a6b93243ccadf56946190b1f0aa746257 100644
|
| --- a/third_party/WebKit/Source/modules/battery/BatteryManager.cpp
|
| +++ b/third_party/WebKit/Source/modules/battery/BatteryManager.cpp
|
| @@ -105,12 +105,14 @@ void BatteryManager::resume() {
|
| startUpdating();
|
| }
|
|
|
| -void BatteryManager::contextDestroyed() {
|
| +void BatteryManager::contextDestroyed(ExecutionContext*) {
|
| m_hasEventListener = false;
|
| m_batteryProperty = nullptr;
|
| stopUpdating();
|
| }
|
|
|
| +void BatteryManager::contextDestroyed(Page*) {}
|
| +
|
| bool BatteryManager::hasPendingActivity() const {
|
| // Prevent V8 from garbage collecting the wrapper object if there are
|
| // event listeners attached to it.
|
|
|