Chromium Code Reviews| Index: chrome/browser/devtools/port_forwarding_controller.cc |
| diff --git a/chrome/browser/devtools/port_forwarding_controller.cc b/chrome/browser/devtools/port_forwarding_controller.cc |
| index d7faa46bc39a17c8003d99ff9ce306ae4a941890..4f138e549b64ab52f83577135734b54d61b6f8fc 100644 |
| --- a/chrome/browser/devtools/port_forwarding_controller.cc |
| +++ b/chrome/browser/devtools/port_forwarding_controller.cc |
| @@ -595,16 +595,16 @@ PortForwardingController::UpdateDeviceList( |
| for (DevToolsAdbBridge::RemoteDevices::const_iterator it = devices.begin(); |
| it != devices.end(); ++it) { |
| scoped_refptr<DevToolsAdbBridge::RemoteDevice> device = *it; |
| - Registry::iterator rit = registry_.find(device->serial()); |
| + Registry::iterator rit = registry_.find(device->GetSerial()); |
|
Vladislav Kaznacheev
2013/10/08 16:42:37
How about adding device->IsConnected check and not
pfeldman
2013/10/08 17:11:04
Yep, thanks.
|
| if (rit == registry_.end()) { |
| std::string socket = FindBestSocketForTethering(device->browsers()); |
| - if (!socket.empty() || device->serial().empty()) { |
| + if (!socket.empty() || device->GetSerial().empty()) { |
| // Will delete itself when disconnected. |
| new Connection( |
| ®istry_, device->device(), socket, adb_thread_, pref_service_); |
| } |
| } else { |
| - status[device->serial()] = (*rit).second->GetPortStatusMap(); |
| + status[device->GetSerial()] = (*rit).second->GetPortStatusMap(); |
| } |
| } |
| return status; |