| Index: Source/core/inspector/InspectorRuntimeAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorRuntimeAgent.cpp b/Source/core/inspector/InspectorRuntimeAgent.cpp
|
| index 25fd76fedf0e5d9c824c038eb2a9cda9cee6f425..39ee7c4d239b6f521646fe309e56ddfc7a6da97e 100644
|
| --- a/Source/core/inspector/InspectorRuntimeAgent.cpp
|
| +++ b/Source/core/inspector/InspectorRuntimeAgent.cpp
|
| @@ -45,6 +45,7 @@ namespace blink {
|
|
|
| namespace InspectorRuntimeAgentState {
|
| static const char runtimeEnabled[] = "runtimeEnabled";
|
| +static const char customObjectFormatterEnabled[] = "customObjectFormatterEnabled";
|
| };
|
|
|
| class InspectorRuntimeAgent::InjectedScriptCallScope {
|
| @@ -196,6 +197,7 @@ void InspectorRuntimeAgent::isRunRequired(ErrorString*, bool* out_result)
|
|
|
| void InspectorRuntimeAgent::setCustomObjectFormatterEnabled(ErrorString*, bool enabled)
|
| {
|
| + m_state->setBoolean(InspectorRuntimeAgentState::customObjectFormatterEnabled, enabled);
|
| injectedScriptManager()->setCustomObjectFormatterEnabled(enabled);
|
| }
|
|
|
| @@ -205,6 +207,8 @@ void InspectorRuntimeAgent::restore()
|
| frontend()->executionContextsCleared();
|
| String error;
|
| enable(&error);
|
| + if (m_state->getBoolean(InspectorRuntimeAgentState::customObjectFormatterEnabled))
|
| + injectedScriptManager()->setCustomObjectFormatterEnabled(true);
|
| }
|
| }
|
|
|
|
|