Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2008)

Unified Diff: third_party/WebKit/Source/modules/battery/BatteryManager.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698