Skip to content

Commit

Permalink
Remove implicit conversions from scoped_refptr to T* in device/
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
zetafunction authored and Commit bot committed Sep 19, 2014
1 parent 70ec8c2 commit d7dd48b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion device/bluetooth/bluetooth_socket_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ BluetoothSDPServiceRecordHandle RegisterL2capService(
// multiple write operations if buffer_size > mtu.
uint16_t mtu = channel_->GetOutgoingMTU();
scoped_refptr<net::DrainableIOBuffer> 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)
Expand Down
2 changes: 1 addition & 1 deletion device/hid/hid_service_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d7dd48b

Please sign in to comment.