Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6021)

Unified Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc

Issue 2210873003: bluetooth: Allow updates on chooser items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-fix-advertised-services
Patch Set: Make const Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
diff --git a/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc b/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
index d717d247feea14d8f0e8b6bda70dce4e52122569..bbb907a809dcb5526f47d7c7ec09d34d3e52139a 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
@@ -28,9 +28,16 @@ void BluetoothChooserDesktop::ShowDiscoveryState(DiscoveryState state) {
bluetooth_chooser_controller_->OnDiscoveryStateChanged(state);
}
-void BluetoothChooserDesktop::AddDevice(const std::string& device_id,
- const base::string16& device_name) {
- bluetooth_chooser_controller_->AddDevice(device_id, device_name);
+void BluetoothChooserDesktop::AddOrUpdateDevice(
+ const std::string& device_id,
+ bool should_update_name,
+ const base::string16& device_name,
+ bool is_gatt_connected,
+ bool is_paired,
+ const int8_t* rssi) {
+ bluetooth_chooser_controller_->AddOrUpdateDevice(
+ device_id, should_update_name, device_name, is_gatt_connected, is_paired,
+ rssi);
}
void BluetoothChooserDesktop::RemoveDevice(const std::string& device_id) {

Powered by Google App Engine
This is Rietveld 408576698