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

Unified Diff: device/bluetooth/bluetooth_socket_mac.mm

Issue 1220713006: Renaming BluetoothDeviceMac as BluetoothClassicDeviceMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dm
Patch Set: learning alphabet Created 5 years, 6 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: device/bluetooth/bluetooth_socket_mac.mm
diff --git a/device/bluetooth/bluetooth_socket_mac.mm b/device/bluetooth/bluetooth_socket_mac.mm
index dfa09f0b0ef0aef98790beb47f05e9131810c994..261932a9cb80404d49d124d1ace9b7c0936d2ac6 100644
--- a/device/bluetooth/bluetooth_socket_mac.mm
+++ b/device/bluetooth/bluetooth_socket_mac.mm
@@ -23,8 +23,8 @@
#include "base/threading/thread_restrictions.h"
#include "device/bluetooth/bluetooth_adapter_mac.h"
#include "device/bluetooth/bluetooth_channel_mac.h"
+#include "device/bluetooth/bluetooth_classic_device_mac.h"
#include "device/bluetooth/bluetooth_device.h"
-#include "device/bluetooth/bluetooth_device_mac.h"
#include "device/bluetooth/bluetooth_l2cap_channel_mac.h"
#include "device/bluetooth/bluetooth_rfcomm_channel_mac.h"
#include "net/base/io_buffer.h"
@@ -471,7 +471,7 @@ void BluetoothSocketMac::Connect(
// Perform an SDP query on the |device| to refresh the cache, in case the
// services that the |device| advertises have changed since the previous
// query.
- DVLOG(1) << BluetoothDeviceMac::GetDeviceAddress(device) << " "
+ DVLOG(1) << BluetoothClassicDeviceMac::GetDeviceAddress(device) << " "
<< uuid_.canonical_value() << ": Sending SDP query.";
SDPQueryListener* listener =
[[SDPQueryListener alloc] initWithSocket:this
@@ -542,7 +542,7 @@ void BluetoothSocketMac::OnSDPQueryComplete(
const base::Closure& success_callback,
const ErrorCompletionCallback& error_callback) {
DCHECK(thread_checker_.CalledOnValidThread());
- DVLOG(1) << BluetoothDeviceMac::GetDeviceAddress(device) << " "
+ DVLOG(1) << BluetoothClassicDeviceMac::GetDeviceAddress(device) << " "
<< uuid_.canonical_value() << ": SDP query complete.";
if (status != kIOReturnSuccess) {
@@ -581,14 +581,14 @@ void BluetoothSocketMac::OnSDPQueryComplete(
}
if (rfcomm_channel_id != kInvalidRfcommChannelId) {
- DVLOG(1) << BluetoothDeviceMac::GetDeviceAddress(device) << " "
- << uuid_.canonical_value() << ": Opening RFCOMM channel: "
- << rfcomm_channel_id;
+ DVLOG(1) << BluetoothClassicDeviceMac::GetDeviceAddress(device) << " "
+ << uuid_.canonical_value()
+ << ": Opening RFCOMM channel: " << rfcomm_channel_id;
} else {
DCHECK_NE(l2cap_psm, kInvalidL2capPsm);
- DVLOG(1) << BluetoothDeviceMac::GetDeviceAddress(device) << " "
- << uuid_.canonical_value() << ": Opening L2CAP channel: "
- << l2cap_psm;
+ DVLOG(1) << BluetoothClassicDeviceMac::GetDeviceAddress(device) << " "
+ << uuid_.canonical_value()
+ << ": Opening L2CAP channel: " << l2cap_psm;
}
// Note: It's important to set the connect callbacks *prior* to opening the
@@ -610,15 +610,14 @@ void BluetoothSocketMac::OnSDPQueryComplete(
ReleaseChannel();
std::stringstream error;
error << "Failed to connect bluetooth socket ("
- << BluetoothDeviceMac::GetDeviceAddress(device) << "): (" << status
- << ")";
+ << BluetoothClassicDeviceMac::GetDeviceAddress(device) << "): ("
+ << status << ")";
error_callback.Run(error.str());
return;
}
- DVLOG(1) << BluetoothDeviceMac::GetDeviceAddress(device) << " "
- << uuid_.canonical_value()
- << ": channel opening in background.";
+ DVLOG(1) << BluetoothClassicDeviceMac::GetDeviceAddress(device) << " "
+ << uuid_.canonical_value() << ": channel opening in background.";
}
void BluetoothSocketMac::OnChannelOpened(
« device/bluetooth/BUILD.gn ('K') | « device/bluetooth/bluetooth_rfcomm_channel_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698