| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/shell/browser/layout_test/layout_test_first_device_bluetooth_c
hooser.h" | 5 #include "content/shell/browser/layout_test/layout_test_first_device_bluetooth_c
hooser.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // device, we'll never find one, so we should cancel. | 38 // device, we'll never find one, so we should cancel. |
| 39 VLOG(1) << "LayoutTestFirstDeviceBluetoothChooser found nothing before " | 39 VLOG(1) << "LayoutTestFirstDeviceBluetoothChooser found nothing before " |
| 40 "going idle."; | 40 "going idle."; |
| 41 event_handler_.Run(Event::CANCELLED, ""); | 41 event_handler_.Run(Event::CANCELLED, ""); |
| 42 break; | 42 break; |
| 43 case DiscoveryState::DISCOVERING: | 43 case DiscoveryState::DISCOVERING: |
| 44 break; | 44 break; |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 void LayoutTestFirstDeviceBluetoothChooser::AddDevice( | 48 void LayoutTestFirstDeviceBluetoothChooser::AddOrUpdateDevice( |
| 49 const std::string& deviceId, | 49 const std::string& deviceId, |
| 50 const base::string16& deviceName) { | 50 const base::string16& deviceName) { |
| 51 event_handler_.Run(Event::SELECTED, deviceId); | 51 event_handler_.Run(Event::SELECTED, deviceId); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace content | 54 } // namespace content |
| OLD | NEW |