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

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

Issue 1924173002: [DevTools] Improve performance of InstrumentingAgents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 8 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
Index: third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp
index 86f6e065853f70a7bdfddc21ebc1eed50633caee..4d1833edb2be8350376d367339b618cfa8534676 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp
@@ -55,7 +55,7 @@ void InspectorConsoleAgent::enable(ErrorString*)
{
if (m_enabled)
return;
- m_instrumentingAgents->setInspectorConsoleAgent(this);
+ m_instrumentingAgents->addInspectorConsoleAgent(this);
m_enabled = true;
enableStackCapturingIfNeeded();
@@ -77,7 +77,7 @@ void InspectorConsoleAgent::disable(ErrorString*)
{
if (!m_enabled)
return;
- m_instrumentingAgents->setInspectorConsoleAgent(nullptr);
+ m_instrumentingAgents->removeInspectorConsoleAgent(this);
m_enabled = false;
disableStackCapturingIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698