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 e2a281ff44ac53524f7990aa016bb2b122ab67e9..5304ce54412e34ada73923ee72880128abdcb38d 100644 |
--- a/third_party/WebKit/Source/modules/battery/BatteryManager.cpp |
+++ b/third_party/WebKit/Source/modules/battery/BatteryManager.cpp |
@@ -33,10 +33,10 @@ BatteryManager::BatteryManager(ExecutionContext* context) |
ScriptPromise BatteryManager::startRequest(ScriptState* scriptState) |
{ |
if (!m_batteryProperty) { |
- m_batteryProperty = new BatteryProperty(scriptState->executionContext(), this, BatteryProperty::Ready); |
+ m_batteryProperty = new BatteryProperty(scriptState->getExecutionContext(), this, BatteryProperty::Ready); |
// If the context is in a stopped state already, do not start updating. |
- if (!executionContext() || executionContext()->activeDOMObjectsAreStopped()) { |
+ if (!getExecutionContext() || getExecutionContext()->activeDOMObjectsAreStopped()) { |
m_batteryProperty->resolve(this); |
} else { |
m_hasEventListener = true; |
@@ -79,7 +79,7 @@ void BatteryManager::didUpdateData() |
return; |
} |
- Document* document = toDocument(executionContext()); |
+ Document* document = toDocument(getExecutionContext()); |
ASSERT(document); |
if (document->activeDOMObjectsAreSuspended() || document->activeDOMObjectsAreStopped()) |
return; |