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

Unified Diff: chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.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/chrome_extension_bluetooth_chooser.cc
diff --git a/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc b/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc
index f7edd9b8c97a166b860d5fe518b9abe9f38b4733..36ee5f14809dc83c5e3c321f10ed9071174d9e81 100644
--- a/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc
+++ b/chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc
@@ -33,10 +33,16 @@ void ChromeExtensionBluetoothChooser::ShowDiscoveryState(DiscoveryState state) {
bluetooth_chooser_controller_->OnDiscoveryStateChanged(state);
}
-void ChromeExtensionBluetoothChooser::AddDevice(
+void ChromeExtensionBluetoothChooser::AddOrUpdateDevice(
const std::string& device_id,
- const base::string16& device_name) {
- bluetooth_chooser_controller_->AddDevice(device_id, device_name);
+ 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 ChromeExtensionBluetoothChooser::RemoveDevice(

Powered by Google App Engine
This is Rietveld 408576698