Commit 0f947552 authored by eustas@chromium.org's avatar eustas@chromium.org

DevTools: Reenable the DOM storage agent on reattach.

BUG=378681

Review URL: https://codereview.chromium.org/304113003

git-svn-id: svn://svn.chromium.org/blink/trunk@175138 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 98d3b3a9
...@@ -89,6 +89,12 @@ void InspectorDOMStorageAgent::clearFrontend() ...@@ -89,6 +89,12 @@ void InspectorDOMStorageAgent::clearFrontend()
disable(0); disable(0);
} }
void InspectorDOMStorageAgent::restore()
{
if (isEnabled())
enable(0);
}
bool InspectorDOMStorageAgent::isEnabled() const bool InspectorDOMStorageAgent::isEnabled() const
{ {
return m_state->getBoolean(DOMStorageAgentState::domStorageAgentEnabled); return m_state->getBoolean(DOMStorageAgentState::domStorageAgentEnabled);
......
...@@ -56,6 +56,7 @@ public: ...@@ -56,6 +56,7 @@ public:
virtual void setFrontend(InspectorFrontend*) OVERRIDE; virtual void setFrontend(InspectorFrontend*) OVERRIDE;
virtual void clearFrontend() OVERRIDE; virtual void clearFrontend() OVERRIDE;
virtual void restore() OVERRIDE;
// Called from the front-end. // Called from the front-end.
virtual void enable(ErrorString*) OVERRIDE; virtual void enable(ErrorString*) OVERRIDE;
......
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