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

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: Fix content_shell 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 f24e4a9585052940e792715b24895e1c1dd04303..2de6a30eae1fe0485da4ca3d81b399696d032de5 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
@@ -23,9 +23,10 @@ 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,
+ const base::string16& device_name) {
+ bluetooth_chooser_controller_->AddOrUpdateDevice(device_id, device_name);
}
void BluetoothChooserDesktop::RemoveDevice(const std::string& device_id) {

Powered by Google App Engine
This is Rietveld 408576698