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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorPageAgent.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/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index cb8737df9a87c4cdf396b4078d5139cdbf077cca..a92ec591bf63788a818c3c2f92ac5dfd59274994 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -370,7 +370,7 @@ void InspectorPageAgent::enable(ErrorString*)
{
m_enabled = true;
m_state->setBoolean(PageAgentState::pageAgentEnabled, true);
- m_instrumentingAgents->setInspectorPageAgent(this);
+ m_instrumentingAgents->addInspectorPageAgent(this);
}
void InspectorPageAgent::disable(ErrorString*)
@@ -380,7 +380,7 @@ void InspectorPageAgent::disable(ErrorString*)
m_state->remove(PageAgentState::pageAgentScriptsToEvaluateOnLoad);
m_scriptToEvaluateOnLoadOnce = String();
m_pendingScriptToEvaluateOnLoadOnce = String();
- m_instrumentingAgents->setInspectorPageAgent(0);
+ m_instrumentingAgents->removeInspectorPageAgent(this);
m_inspectorResourceContentLoader->cancel(m_resourceContentLoaderClientId);
stopScreencast(0);

Powered by Google App Engine
This is Rietveld 408576698