Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp

Issue 2720213002: Removed FrameHost::deprecation() (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounterTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698