| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/devtools/device/webrtc/devtools_bridge_client.h" | 5 #include "chrome/browser/devtools/device/webrtc/devtools_bridge_client.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/local_discovery/gcd_api_flow.h" | 8 #include "chrome/browser/local_discovery/gcd_api_flow.h" |
| 9 #include "chrome/browser/signin/profile_identity_provider.h" | 9 #include "chrome/browser/signin/profile_identity_provider.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 for (const auto& instance : instances) { | 247 for (const auto& instance : instances) { |
| 248 BrowserInfo browser; | 248 BrowserInfo browser; |
| 249 browser.type = BrowserInfo::kTypeChrome; | 249 browser.type = BrowserInfo::kTypeChrome; |
| 250 browser.display_name = instance.display_name; | 250 browser.display_name = instance.display_name; |
| 251 browser.socket_name = kDeviceIdPrefix + instance.id; | 251 browser.socket_name = kDeviceIdPrefix + instance.id; |
| 252 browsers.push_back(browser); | 252 browsers.push_back(browser); |
| 253 } | 253 } |
| 254 browsers_.swap(browsers); | 254 browsers_.swap(browsers); |
| 255 | 255 |
| 256 browser_list_request_.reset(); | 256 browser_list_request_.reset(); |
| 257 |
| 258 OnBrowserListUpdated(); |
| 257 } | 259 } |
| 258 | 260 |
| 259 void DevToolsBridgeClient::OnDevToolsBridgeInstancesRequestFailed() { | 261 void DevToolsBridgeClient::OnDevToolsBridgeInstancesRequestFailed() { |
| 260 // We keep the list of remote browsers even if the request failed. | 262 // We keep the list of remote browsers even if the request failed. |
| 261 browser_list_request_.reset(); | 263 browser_list_request_.reset(); |
| 262 } | 264 } |
| OLD | NEW |