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

Unified Diff: Source/modules/bluetooth/NavigatorBluetooth.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
Index: Source/modules/bluetooth/NavigatorBluetooth.cpp
diff --git a/Source/modules/bluetooth/NavigatorBluetooth.cpp b/Source/modules/bluetooth/NavigatorBluetooth.cpp
index 5aaa699f151d83510d43ef3fd8887e2ade5ec169..743979165b8aed34e050345f3f8557236702ba7b 100644
--- a/Source/modules/bluetooth/NavigatorBluetooth.cpp
+++ b/Source/modules/bluetooth/NavigatorBluetooth.cpp
@@ -12,10 +12,10 @@ namespace blink {
NavigatorBluetooth& NavigatorBluetooth::from(Navigator& navigator)
{
- NavigatorBluetooth* supplement = static_cast<NavigatorBluetooth*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
+ NavigatorBluetooth* supplement = static_cast<NavigatorBluetooth*>(HeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorBluetooth();
- provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
+ provideTo(navigator, supplementName(), supplement);
}
return *supplement;
}
@@ -35,15 +35,13 @@ Bluetooth* NavigatorBluetooth::bluetooth()
DEFINE_TRACE(NavigatorBluetooth)
{
visitor->trace(m_bluetooth);
- WillBeHeapSupplement<Navigator>::trace(visitor);
+ HeapSupplement<Navigator>::trace(visitor);
}
NavigatorBluetooth::NavigatorBluetooth()
{
}
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NavigatorBluetooth);
-
const char* NavigatorBluetooth::supplementName()
{
return "NavigatorBluetooth";
« no previous file with comments | « Source/modules/bluetooth/NavigatorBluetooth.h ('k') | Source/modules/credentialmanager/NavigatorCredentials.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698