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

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

Issue 2611163003: Remove ContextClient from DOMWindowCrypto (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.cpp
diff --git a/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.cpp b/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.cpp
index 550a00b12f8dc211f07873f31cee3feab5cc36d5..3eacc947fb3f4a3e2d62b2298b9231087f478add 100644
--- a/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.cpp
+++ b/third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.cpp
@@ -36,7 +36,7 @@
namespace blink {
DOMWindowCrypto::DOMWindowCrypto(LocalDOMWindow& window)
- : ContextClient(window.frame()) {}
+ : Supplement<LocalDOMWindow>(window) {}
const char* DOMWindowCrypto::supplementName() {
return "DOMWindowCrypto";
@@ -57,7 +57,7 @@ Crypto* DOMWindowCrypto::crypto(DOMWindow& window) {
}
Crypto* DOMWindowCrypto::crypto() const {
- if (!m_crypto && frame())
haraken 2017/01/06 01:40:38 This check won't make much sense. Removed.
+ if (!m_crypto)
m_crypto = Crypto::create();
return m_crypto.get();
}
@@ -65,7 +65,6 @@ Crypto* DOMWindowCrypto::crypto() const {
DEFINE_TRACE(DOMWindowCrypto) {
visitor->trace(m_crypto);
Supplement<LocalDOMWindow>::trace(visitor);
- ContextClient::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/crypto/DOMWindowCrypto.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698