| Index: third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
|
| index 1fe4c09225c3bcf16576dae33d89b4917c53413a..0ceb91be2071422f8f50c7338f4c258ab03fedd5 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
|
| @@ -35,7 +35,6 @@
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/inspector/InjectedScript.h"
|
| #include "core/inspector/InjectedScriptHost.h"
|
| -#include "core/inspector/InspectorState.h"
|
| #include "core/inspector/RemoteObjectId.h"
|
| #include "platform/Timer.h"
|
| #include "wtf/CurrentTime.h"
|
| @@ -203,10 +202,10 @@ InspectorHeapProfilerAgent::~InspectorHeapProfilerAgent()
|
|
|
| void InspectorHeapProfilerAgent::restore()
|
| {
|
| - if (m_state->getBoolean(HeapProfilerAgentState::heapProfilerEnabled))
|
| + if (m_state->getBoolean(HeapProfilerAgentState::heapProfilerEnabled, false))
|
| frontend()->resetProfiles();
|
| - if (m_state->getBoolean(HeapProfilerAgentState::heapObjectsTrackingEnabled))
|
| - startTrackingHeapObjectsInternal(m_state->getBoolean(HeapProfilerAgentState::allocationTrackingEnabled));
|
| + if (m_state->getBoolean(HeapProfilerAgentState::heapObjectsTrackingEnabled, false))
|
| + startTrackingHeapObjectsInternal(m_state->getBoolean(HeapProfilerAgentState::allocationTrackingEnabled, false));
|
| }
|
|
|
| void InspectorHeapProfilerAgent::collectGarbage(ErrorString*)
|
|
|