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

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

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/NavigatorBattery.cpp
diff --git a/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp b/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp
index d38a7adf1bd857b55665c9d9239e5a8ae34e248a..3cd87c08318ee67a62ae3e97fef8ae62699c5336 100644
--- a/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp
+++ b/third_party/WebKit/Source/modules/battery/NavigatorBattery.cpp
@@ -33,7 +33,7 @@ const char* NavigatorBattery::supplementName()
NavigatorBattery& NavigatorBattery::from(Navigator& navigator)
{
- NavigatorBattery* supplement = static_cast<NavigatorBattery*>(HeapSupplement<Navigator>::from(navigator, supplementName()));
+ NavigatorBattery* supplement = static_cast<NavigatorBattery*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorBattery();
provideTo(navigator, supplementName(), supplement);
@@ -44,7 +44,7 @@ NavigatorBattery& NavigatorBattery::from(Navigator& navigator)
DEFINE_TRACE(NavigatorBattery)
{
visitor->trace(m_batteryManager);
- HeapSupplement<Navigator>::trace(visitor);
+ Supplement<Navigator>::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698