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

Unified Diff: Source/modules/donottrack/NavigatorDoNotTrack.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/donottrack/NavigatorDoNotTrack.h ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/donottrack/NavigatorDoNotTrack.cpp
diff --git a/Source/modules/donottrack/NavigatorDoNotTrack.cpp b/Source/modules/donottrack/NavigatorDoNotTrack.cpp
index 0807becc3d45fcd40c0f29d632f0aef22d6ca0e0..9e78844022a143af27b80b040946586a8c982c3c 100644
--- a/Source/modules/donottrack/NavigatorDoNotTrack.cpp
+++ b/Source/modules/donottrack/NavigatorDoNotTrack.cpp
@@ -42,11 +42,13 @@ NavigatorDoNotTrack::NavigatorDoNotTrack(LocalFrame* frame)
{
}
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NavigatorDoNotTrack);
+NavigatorDoNotTrack::~NavigatorDoNotTrack()
+{
+}
DEFINE_TRACE(NavigatorDoNotTrack)
{
- WillBeHeapSupplement<Navigator>::trace(visitor);
+ HeapSupplement<Navigator>::trace(visitor);
DOMWindowProperty::trace(visitor);
}
@@ -57,10 +59,10 @@ const char* NavigatorDoNotTrack::supplementName()
NavigatorDoNotTrack& NavigatorDoNotTrack::from(Navigator& navigator)
{
- NavigatorDoNotTrack* supplement = static_cast<NavigatorDoNotTrack*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
+ NavigatorDoNotTrack* supplement = static_cast<NavigatorDoNotTrack*>(HeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorDoNotTrack(navigator.frame());
- provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
+ provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
« no previous file with comments | « Source/modules/donottrack/NavigatorDoNotTrack.h ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698