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

Unified Diff: Source/modules/vr/NavigatorVRDevice.cpp

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/modules/vr/NavigatorVRDevice.h ('k') | Source/modules/vr/VRGetDevicesCallback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/vr/NavigatorVRDevice.cpp
diff --git a/Source/modules/vr/NavigatorVRDevice.cpp b/Source/modules/vr/NavigatorVRDevice.cpp
index fccba63787845c215d15858c07d157d70097e645..d69b509d497fce8b9531a78ae3eabc94ad5fe4c3 100644
--- a/Source/modules/vr/NavigatorVRDevice.cpp
+++ b/Source/modules/vr/NavigatorVRDevice.cpp
@@ -33,10 +33,10 @@ NavigatorVRDevice* NavigatorVRDevice::from(Document& document)
NavigatorVRDevice& NavigatorVRDevice::from(Navigator& navigator)
{
- NavigatorVRDevice* supplement = static_cast<NavigatorVRDevice*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
+ NavigatorVRDevice* supplement = static_cast<NavigatorVRDevice*>(HeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorVRDevice(navigator.frame());
- provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
+ provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
@@ -76,7 +76,7 @@ DEFINE_TRACE(NavigatorVRDevice)
{
visitor->trace(m_hardwareUnits);
- WillBeHeapSupplement<Navigator>::trace(visitor);
+ HeapSupplement<Navigator>::trace(visitor);
DOMWindowProperty::trace(visitor);
}
« no previous file with comments | « Source/modules/vr/NavigatorVRDevice.h ('k') | Source/modules/vr/VRGetDevicesCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698