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

Unified Diff: content/browser/devtools/devtools_session.h

Issue 2874613003: [DevTools] Support multiple clients in DevToolsAgentHost (Closed)
Patch Set: Created 3 years, 7 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: content/browser/devtools/devtools_session.h
diff --git a/content/browser/devtools/devtools_session.h b/content/browser/devtools/devtools_session.h
index 42b45c7e495b9c9b5ba5b8784fcefff2d4b78a3f..e6fcfaf065c8597a0cb0270331ded60bd70fcdea 100644
--- a/content/browser/devtools/devtools_session.h
+++ b/content/browser/devtools/devtools_session.h
@@ -44,12 +44,13 @@ class DevToolsSession : public protocol::FrontendChannel {
DevToolsAgentHostImpl* agent_host,
const std::string& name) {
std::vector<Handler*> result;
- if (agent_host->sessions_.empty())
+ if (agent_host->sessions().empty())
return result;
- for (const auto& session : agent_host->sessions_) {
- auto it = session->handlers_.find(name);
- if (it != session->handlers_.end())
- result.push_back(static_cast<Handler*>(it->second.get()));
+ for (auto& it_session : agent_host->sessions()) {
+ DevToolsSession* session = it_session.second;
+ auto it_handler = session->handlers_.find(name);
+ if (it_handler != session->handlers_.end())
+ result.push_back(static_cast<Handler*>(it_handler->second.get()));
}
return result;
}
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.cc ('k') | content/browser/devtools/forwarding_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698