From d7dd48b1c3af2de5d8e4e05b5e9e40008617c68f Mon Sep 17 00:00:00 2001 From: dcheng Date: Fri, 19 Sep 2014 10:56:24 -0700 Subject: [PATCH] Remove implicit conversions from scoped_refptr to T* in device/ This patch was generated by running the rewrite_scoped_refptr clang tool on a Mac build. BUG=110610 Review URL: https://codereview.chromium.org/584083002 Cr-Commit-Position: refs/heads/master@{#295732} --- device/bluetooth/bluetooth_socket_mac.mm | 2 +- device/hid/hid_service_mac.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/device/bluetooth/bluetooth_socket_mac.mm b/device/bluetooth/bluetooth_socket_mac.mm index 02bd3eab941c..73f210aba4be 100644 --- a/device/bluetooth/bluetooth_socket_mac.mm +++ b/device/bluetooth/bluetooth_socket_mac.mm @@ -762,7 +762,7 @@ void BluetoothSocketMac::Send(scoped_refptr buffer, // multiple write operations if buffer_size > mtu. uint16_t mtu = channel_->GetOutgoingMTU(); scoped_refptr send_buffer( - new net::DrainableIOBuffer(buffer, buffer_size)); + new net::DrainableIOBuffer(buffer.get(), buffer_size)); while (send_buffer->BytesRemaining() > 0) { int byte_count = send_buffer->BytesRemaining(); if (byte_count > mtu) diff --git a/device/hid/hid_service_mac.cc b/device/hid/hid_service_mac.cc index 640c1383e9b0..fe4876141d7f 100644 --- a/device/hid/hid_service_mac.cc +++ b/device/hid/hid_service_mac.cc @@ -147,7 +147,7 @@ void GetCollectionInfos(IOHIDDeviceRef device, HidServiceMac::HidServiceMac() { DCHECK(thread_checker_.CalledOnValidThread()); message_loop_ = base::MessageLoopProxy::current(); - DCHECK(message_loop_); + DCHECK(message_loop_.get()); hid_manager_.reset(IOHIDManagerCreate(NULL, 0)); if (!hid_manager_) { LOG(ERROR) << "Failed to initialize HidManager"; -- 2.11.4.GIT