| Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| index f742ce7fbaaf76feefb126d4bb79e505ed22bafa..092eca6f945ddcbbd8a7e27abe8b4334d90603ef 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| @@ -57,7 +57,6 @@
|
| #include "core/inspector/InspectorDebuggerAgent.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/InspectorResourceContentLoader.h"
|
| -#include "core/inspector/InspectorState.h"
|
| #include "core/inspector/InstrumentingAgents.h"
|
| #include "core/loader/DocumentLoader.h"
|
| #include "core/loader/FrameLoader.h"
|
| @@ -359,7 +358,7 @@ InspectorPageAgent::InspectorPageAgent(InspectedFrames* inspectedFrames, Client*
|
|
|
| void InspectorPageAgent::restore()
|
| {
|
| - if (m_state->getBoolean(PageAgentState::pageAgentEnabled)) {
|
| + if (m_state->getBoolean(PageAgentState::pageAgentEnabled, false)) {
|
| ErrorString error;
|
| enable(&error);
|
| }
|
| @@ -399,9 +398,6 @@ void InspectorPageAgent::addScriptToEvaluateOnLoad(ErrorString*, const String& s
|
| *identifier = String::number(++m_lastScriptIdentifier);
|
| } while (scripts->find(*identifier) != scripts->end());
|
| scripts->setString(*identifier, source);
|
| -
|
| - // Force cookie serialization.
|
| - m_state->setObject(PageAgentState::pageAgentScriptsToEvaluateOnLoad, scripts);
|
| }
|
|
|
| void InspectorPageAgent::removeScriptToEvaluateOnLoad(ErrorString* error, const String& identifier)
|
| @@ -638,7 +634,7 @@ void InspectorPageAgent::frameDetachedFromParent(LocalFrame* frame)
|
|
|
| bool InspectorPageAgent::screencastEnabled()
|
| {
|
| - return m_enabled && m_state->getBoolean(PageAgentState::screencastEnabled);
|
| + return m_enabled && m_state->getBoolean(PageAgentState::screencastEnabled, false);
|
| }
|
|
|
| void InspectorPageAgent::frameStartedLoading(LocalFrame* frame)
|
|
|