| Index: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| index 3e13fdefe9c20c6afcbb458b97b52254ba8e9e3a..184bb0815f237029738390cd8b984a6707de86d0 100644
|
| --- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "core/inspector/MainThreadDebugger.h"
|
|
|
| #include <memory>
|
| +
|
| #include "bindings/core/v8/BindingSecurity.h"
|
| #include "bindings/core/v8/DOMWrapperWorld.h"
|
| #include "bindings/core/v8/ScriptController.h"
|
| @@ -59,6 +60,7 @@
|
| #include "core/inspector/InspectorTaskRunner.h"
|
| #include "core/inspector/V8InspectorString.h"
|
| #include "core/inspector/protocol/Protocol.h"
|
| +#include "core/page/Page.h"
|
| #include "core/timing/MemoryInfo.h"
|
| #include "core/workers/MainThreadWorkletGlobalScope.h"
|
| #include "core/xml/XPathEvaluator.h"
|
| @@ -257,17 +259,17 @@ void MainThreadDebugger::quitMessageLoopOnPause() {
|
|
|
| void MainThreadDebugger::muteMetrics(int contextGroupId) {
|
| LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
|
| - if (frame && frame->host()) {
|
| - frame->host()->useCounter().muteForInspector();
|
| - frame->host()->deprecation().muteForInspector();
|
| + if (frame && frame->page()) {
|
| + frame->page()->useCounter().muteForInspector();
|
| + frame->page()->deprecation().muteForInspector();
|
| }
|
| }
|
|
|
| void MainThreadDebugger::unmuteMetrics(int contextGroupId) {
|
| LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
|
| - if (frame && frame->host()) {
|
| - frame->host()->useCounter().unmuteForInspector();
|
| - frame->host()->deprecation().unmuteForInspector();
|
| + if (frame && frame->page()) {
|
| + frame->page()->useCounter().unmuteForInspector();
|
| + frame->page()->deprecation().unmuteForInspector();
|
| }
|
| }
|
|
|
|
|