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

Unified Diff: device/bluetooth/bluetooth_device_win.cc

Issue 2009753002: bluetooth: Make public BluetoothDevice::GetName method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out name/alias Created 4 years, 5 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
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_device_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_win.cc
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc
index 525ab0a1d9da8f5e2aa24adcabc9d13e46845e1d..f71c1372891f7d474ddd2445d8b630cc132aa9f0 100644
--- a/device/bluetooth/bluetooth_device_win.cc
+++ b/device/bluetooth/bluetooth_device_win.cc
@@ -87,6 +87,10 @@ uint16_t BluetoothDeviceWin::GetAppearance() const {
return 0;
}
+base::Optional<std::string> BluetoothDeviceWin::GetName() const {
+ return name_;
+}
+
bool BluetoothDeviceWin::IsPaired() const {
return paired_;
}
@@ -285,10 +289,6 @@ void BluetoothDeviceWin::Update(
UpdateServices(device_state);
}
-std::string BluetoothDeviceWin::GetDeviceName() const {
- return name_;
-}
-
void BluetoothDeviceWin::CreateGattConnectionImpl() {
// Windows implementation does not use the default CreateGattConnection
// implementation.
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_device_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698