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

Unified Diff: Source/modules/crypto/DOMWindowCrypto.cpp

Issue 212933005: Oilpan: turn DOMWindow into a heap supplementable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make use of DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED() Created 6 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
« no previous file with comments | « Source/modules/crypto/DOMWindowCrypto.h ('k') | Source/modules/imagebitmap/ImageBitmapFactories.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/DOMWindowCrypto.cpp
diff --git a/Source/modules/crypto/DOMWindowCrypto.cpp b/Source/modules/crypto/DOMWindowCrypto.cpp
index 3e3e0274303de313ac086fbe62ff95752ca6f490..5ba3c97db42e54d5613c00157d544c4a938f5e45 100644
--- a/Source/modules/crypto/DOMWindowCrypto.cpp
+++ b/Source/modules/crypto/DOMWindowCrypto.cpp
@@ -52,10 +52,10 @@ const char* DOMWindowCrypto::supplementName()
DOMWindowCrypto& DOMWindowCrypto::from(DOMWindow& window)
{
- DOMWindowCrypto* supplement = static_cast<DOMWindowCrypto*>(Supplement<DOMWindow>::from(window, supplementName()));
+ DOMWindowCrypto* supplement = static_cast<DOMWindowCrypto*>(WillBeHeapSupplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
supplement = new DOMWindowCrypto(window);
- provideTo(window, supplementName(), adoptPtr(supplement));
+ provideTo(window, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -72,4 +72,9 @@ Crypto* DOMWindowCrypto::crypto() const
return m_crypto.get();
}
+void DOMWindowCrypto::trace(Visitor* visitor)
+{
+ visitor->trace(m_crypto);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/crypto/DOMWindowCrypto.h ('k') | Source/modules/imagebitmap/ImageBitmapFactories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698