Index: third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp |
diff --git a/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp b/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp |
index 38816d78c651c08e4d6490002f6167a5d0929a16..d38a7adf1bd857b55665c9d9239e5a8ae34e248a 100644 |
--- a/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp |
+++ b/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp |
@@ -21,7 +21,7 @@ ScriptPromise NavigatorBattery::getBattery(ScriptState* scriptState, Navigator& |
ScriptPromise NavigatorBattery::getBattery(ScriptState* scriptState) |
{ |
if (!m_batteryManager) |
- m_batteryManager = BatteryManager::create(scriptState->executionContext()); |
+ m_batteryManager = BatteryManager::create(scriptState->getExecutionContext()); |
return m_batteryManager->startRequest(scriptState); |
} |