| 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;
|
| }
|
|
|