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

Unified Diff: components/proximity_auth/bluetooth_util_chromeos.cc

Issue 604213002: [Clean-up] Run git cl format over the proximity_auth component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « components/proximity_auth/bluetooth_util.h ('k') | components/proximity_auth/connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/bluetooth_util_chromeos.cc
diff --git a/components/proximity_auth/bluetooth_util_chromeos.cc b/components/proximity_auth/bluetooth_util_chromeos.cc
index 35e83f60882482f6f416ba0f00d2fc1f6217e1a0..162ea639f94e32159240173e94336aab361e3132 100644
--- a/components/proximity_auth/bluetooth_util_chromeos.cc
+++ b/components/proximity_auth/bluetooth_util_chromeos.cc
@@ -69,8 +69,7 @@ struct SeekDeviceResult {
// Writes |address| into the |result|. Return true on success, false if the
// |address| is not a valid Bluetooth address.
-bool BluetoothAddressToBdaddr(const std::string& address,
- bdaddr_t* result) {
+bool BluetoothAddressToBdaddr(const std::string& address, bdaddr_t* result) {
std::string canonical_address = BluetoothDevice::CanonicalizeAddress(address);
if (canonical_address.empty())
return false;
@@ -118,7 +117,7 @@ SeekDeviceResult SeekDeviceByAddressImpl(
net::SocketDescriptor socket_descriptor =
socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP);
int result = connect(socket_descriptor,
- reinterpret_cast<struct sockaddr *>(&addr),
+ reinterpret_cast<struct sockaddr*>(&addr),
sizeof(addr));
if (result == 0) {
seek_result.success = true;
@@ -151,7 +150,8 @@ void SeekDeviceByAddress(const std::string& device_address,
base::PostTaskAndReplyWithResult(
task_runner,
FROM_HERE,
- base::Bind(&SeekDeviceByAddressImpl, device_address,
+ base::Bind(&SeekDeviceByAddressImpl,
+ device_address,
make_scoped_refptr(task_runner)),
base::Bind(&OnSeekDeviceResult, callback, error_callback));
}
« no previous file with comments | « components/proximity_auth/bluetooth_util.h ('k') | components/proximity_auth/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698