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 @@
namespace blink {
DOMWindowQuota::DOMWindowQuota(LocalDOMWindow& window)
: ContextClient(window.frame()) {}
: Supplement<LocalDOMWindow>(window) {}
const char* DOMWindowQuota::supplementName() {
return "DOMWindowQuota";
......@@ -61,7 +61,7 @@ DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo(DOMWindow& window) {
}
DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo() const {
if (!m_storageInfo && frame())
if (!m_storageInfo)
m_storageInfo = DeprecatedStorageInfo::create();
return m_storageInfo.get();
}
......@@ -69,7 +69,6 @@ DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo() const {
DEFINE_TRACE(DOMWindowQuota) {
visitor->trace(m_storageInfo);
Supplement<LocalDOMWindow>::trace(visitor);
ContextClient::trace(visitor);
}
} // namespace blink
......@@ -31,7 +31,6 @@
#ifndef DOMWindowQuota_h
#define DOMWindowQuota_h
#include "core/dom/ContextLifecycleObserver.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
......@@ -42,8 +41,7 @@ class DOMWindow;
class LocalDOMWindow;
class DOMWindowQuota final : public GarbageCollected<DOMWindowQuota>,
public Supplement<LocalDOMWindow>,
public ContextClient {
public Supplement<LocalDOMWindow> {
USING_GARBAGE_COLLECTED_MIXIN(DOMWindowQuota);
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