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

Unified Diff: device/bluetooth/bluetooth_adapter_bluez.cc

Issue 1810993002: Don't improve Bluetooth Adapter name on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_bluez.cc
diff --git a/device/bluetooth/bluetooth_adapter_bluez.cc b/device/bluetooth/bluetooth_adapter_bluez.cc
index f8df754c95e63d82b24ff673b6912d200292cbe6..5d3fdea53569874d3da876b79c87486def3f4eb2 100644
--- a/device/bluetooth/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluetooth_adapter_bluez.cc
@@ -828,10 +828,6 @@ void BluetoothAdapterBlueZ::SetDefaultAdapterName() {
alias = "Chromebook";
break;
}
-#elif defined(OS_LINUX)
- alias = "ChromeLinux";
-#endif
-
// Take the lower 2 bytes of hashed Bluetooth address and combine it with the
// device type to create a more identifiable device name.
const std::string address = GetAddress();
@@ -839,6 +835,9 @@ void BluetoothAdapterBlueZ::SetDefaultAdapterName() {
"%s_%04X", alias.c_str(),
base::SuperFastHash(address.data(), address.size()) & 0xFFFF);
SetName(alias, base::Bind(&base::DoNothing), base::Bind(&base::DoNothing));
+#elif defined(OS_LINUX)
ortuno 2016/03/30 17:11:57 You are moving this after "SetName" so you might a
+ alias = "ChromeLinux";
+#endif
}
void BluetoothAdapterBlueZ::RemoveAdapter() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698