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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.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/InspectorApplicationCacheAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.cpp
index e916e3398a94abf68ff0a0d3b0f7f7c939266525..af08d7880b8def33d806380271161a8598974bf5 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.cpp
@@ -56,14 +56,14 @@ void InspectorApplicationCacheAgent::restore()
void InspectorApplicationCacheAgent::enable(ErrorString*)
{
m_state->setBoolean(ApplicationCacheAgentState::applicationCacheAgentEnabled, true);
- m_instrumentingAgents->setInspectorApplicationCacheAgent(this);
+ m_instrumentingAgents->addInspectorApplicationCacheAgent(this);
frontend()->networkStateUpdated(networkStateNotifier().onLine());
}
void InspectorApplicationCacheAgent::disable(ErrorString*)
{
m_state->setBoolean(ApplicationCacheAgentState::applicationCacheAgentEnabled, false);
- m_instrumentingAgents->setInspectorApplicationCacheAgent(nullptr);
+ m_instrumentingAgents->removeInspectorApplicationCacheAgent(this);
}
void InspectorApplicationCacheAgent::updateApplicationCacheStatus(LocalFrame* frame)

Powered by Google App Engine
This is Rietveld 408576698