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

Unified Diff: Source/modules/battery/NavigatorBattery.h

Issue 1101263003: Oilpan: have Navigator and its supplements be on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 8 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
« no previous file with comments | « Source/core/frame/Screen.h ('k') | Source/modules/battery/NavigatorBattery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/NavigatorBattery.h
diff --git a/Source/modules/battery/NavigatorBattery.h b/Source/modules/battery/NavigatorBattery.h
index 13aaaf3b05b0785a28d8d77ddc446accceeee5d7..3539751ad1857dc9f6b047188387bf585be6470d 100644
--- a/Source/modules/battery/NavigatorBattery.h
+++ b/Source/modules/battery/NavigatorBattery.h
@@ -15,11 +15,9 @@ namespace blink {
class BatteryManager;
class Navigator;
-class NavigatorBattery final : public NoBaseWillBeGarbageCollectedFinalized<NavigatorBattery>, public WillBeHeapSupplement<Navigator> {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorBattery);
+class NavigatorBattery final : public GarbageCollected<NavigatorBattery>, public HeapSupplement<Navigator> {
+ USING_GARBAGE_COLLECTED_MIXIN(NavigatorBattery);
public:
- virtual ~NavigatorBattery();
-
static NavigatorBattery& from(Navigator&);
static ScriptPromise getBattery(ScriptState*, Navigator&);
@@ -31,7 +29,7 @@ private:
NavigatorBattery();
static const char* supplementName();
- PersistentWillBeMember<BatteryManager> m_batteryManager;
+ Member<BatteryManager> m_batteryManager;
};
} // namespace blink
« no previous file with comments | « Source/core/frame/Screen.h ('k') | Source/modules/battery/NavigatorBattery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698