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

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

Issue 2587913002: Rename activeDOMObjectsAreSuspended to isContextSuspended (Closed)
Patch Set: temp Created 4 years 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 09d9709bccc94c9a4412b6d9ee3b7dff893c365d..885ac957fdd03a3bd2e38570f73c8f8c98725e2e 100644
--- a/third_party/WebKit/Source/modules/battery/BatteryManager.cpp
+++ b/third_party/WebKit/Source/modules/battery/BatteryManager.cpp
@@ -70,8 +70,7 @@ void BatteryManager::didUpdateData() {
Document* document = toDocument(getExecutionContext());
DCHECK(document);
- if (document->activeDOMObjectsAreSuspended() ||
- document->isContextDestroyed())
+ if (document->isContextSuspended() || document->isContextDestroyed())
return;
if (m_batteryStatus.charging() != oldStatus.charging())

Powered by Google App Engine
This is Rietveld 408576698