Index: chrome/browser/devtools/device/port_forwarding_controller.cc |
diff --git a/chrome/browser/devtools/device/port_forwarding_controller.cc b/chrome/browser/devtools/device/port_forwarding_controller.cc |
index 19ca9cd88bb53b5d9e5860c88929b6ae36c5b289..315aa5858e2b82e337cc88408d7c2392d54d3565 100644 |
--- a/chrome/browser/devtools/device/port_forwarding_controller.cc |
+++ b/chrome/browser/devtools/device/port_forwarding_controller.cc |
@@ -467,9 +467,9 @@ PortForwardingController::DeviceListChanged( |
} |
void PortForwardingController::CloseAllConnections() { |
- std::vector<Connection*> registry_copy; |
Registry copy(registry_); |
- base::STLDeleteValues(©); |
+ for (auto& entry : copy) |
+ delete entry.second; |
} |
void PortForwardingController::OnPrefsChange() { |