Chromium Code Reviews| Index: components/ui_devtools/devtools_client.cc |
| diff --git a/components/ui_devtools/devtools_client.cc b/components/ui_devtools/devtools_client.cc |
| index 94a751ab6894745e7cf938869c13bf0d2fa31ad5..a7556ad774cd17ddd0047a37cacf9b3b98f8f6de 100644 |
| --- a/components/ui_devtools/devtools_client.cc |
| +++ b/components/ui_devtools/devtools_client.cc |
| @@ -25,6 +25,12 @@ void UiDevToolsClient::AddAgent(std::unique_ptr<UiDevToolsAgent> agent) { |
| agents_.push_back(std::move(agent)); |
| } |
| +void UiDevToolsClient::DisableAllAgents() { |
| + for (std::unique_ptr<UiDevToolsAgent>& agent : agents_) { |
| + agent->Disable(); |
| + } |
|
sadrul
2016/11/02 01:45:39
Don't need the {}
Sarmad Hashmi
2016/11/02 02:43:53
Done.
|
| +} |
| + |
| void UiDevToolsClient::Dispatch(const std::string& data) { |
| dispatcher_.dispatch(protocol::parseJSON(data)); |
| } |