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

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

Issue 1834073002: [DevTools] Create agents on attach. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 9 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 | « no previous file | third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp
index b80282cb96d8f1f1615323f7f72ec872651309c2..8e7f88977a36f1fab9971d381e4b36fc261dbf10 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.cpp
@@ -123,8 +123,8 @@ void InspectorAgentRegistry::registerInDispatcher(protocol::Dispatcher* dispatch
void InspectorAgentRegistry::discardAgents()
{
- for (size_t i = 0; i < m_agents.size(); i++)
- m_agents[i]->discardAgent();
+ for (size_t i = m_agents.size(); i > 0; i--)
+ m_agents[i - 1]->discardAgent();
}
void InspectorAgentRegistry::flushPendingProtocolNotifications()
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698