Commit ff41261e authored by haraken's avatar haraken Committed by Commit bot

Remove ContextClient from DOMWindowQuota

It's not needed.

BUG=610176

Review-Url: https://codereview.chromium.org/2615163002
Cr-Commit-Position: refs/heads/master@{#441897}
parent 40458d4d
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
namespace blink { namespace blink {
DOMWindowQuota::DOMWindowQuota(LocalDOMWindow& window) DOMWindowQuota::DOMWindowQuota(LocalDOMWindow& window)
: ContextClient(window.frame()) {} : Supplement<LocalDOMWindow>(window) {}
const char* DOMWindowQuota::supplementName() { const char* DOMWindowQuota::supplementName() {
return "DOMWindowQuota"; return "DOMWindowQuota";
...@@ -61,7 +61,7 @@ DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo(DOMWindow& window) { ...@@ -61,7 +61,7 @@ DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo(DOMWindow& window) {
} }
DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo() const { DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo() const {
if (!m_storageInfo && frame()) if (!m_storageInfo)
m_storageInfo = DeprecatedStorageInfo::create(); m_storageInfo = DeprecatedStorageInfo::create();
return m_storageInfo.get(); return m_storageInfo.get();
} }
...@@ -69,7 +69,6 @@ DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo() const { ...@@ -69,7 +69,6 @@ DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo() const {
DEFINE_TRACE(DOMWindowQuota) { DEFINE_TRACE(DOMWindowQuota) {
visitor->trace(m_storageInfo); visitor->trace(m_storageInfo);
Supplement<LocalDOMWindow>::trace(visitor); Supplement<LocalDOMWindow>::trace(visitor);
ContextClient::trace(visitor);
} }
} // namespace blink } // namespace blink
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#ifndef DOMWindowQuota_h #ifndef DOMWindowQuota_h
#define DOMWindowQuota_h #define DOMWindowQuota_h
#include "core/dom/ContextLifecycleObserver.h"
#include "platform/Supplementable.h" #include "platform/Supplementable.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
...@@ -42,8 +41,7 @@ class DOMWindow; ...@@ -42,8 +41,7 @@ class DOMWindow;
class LocalDOMWindow; class LocalDOMWindow;
class DOMWindowQuota final : public GarbageCollected<DOMWindowQuota>, class DOMWindowQuota final : public GarbageCollected<DOMWindowQuota>,
public Supplement<LocalDOMWindow>, public Supplement<LocalDOMWindow> {
public ContextClient {
USING_GARBAGE_COLLECTED_MIXIN(DOMWindowQuota); USING_GARBAGE_COLLECTED_MIXIN(DOMWindowQuota);
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment