diff options
author | dcheng <dcheng@chromium.org> | 2014-08-25 15:20:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-25 22:30:35 +0000 |
commit | 7921e3faac8556ad9e24c533b8019f85b99e6911 (patch) | |
tree | bdb12163f695a2513b627378f43a1f6ff4803990 /extensions/renderer/api | |
parent | 4dfe65941a184aee51c4540f0f0fed7d03b9ba8a (diff) | |
download | chromium_src-7921e3faac8556ad9e24c533b8019f85b99e6911.zip chromium_src-7921e3faac8556ad9e24c533b8019f85b99e6911.tar.gz chromium_src-7921e3faac8556ad9e24c533b8019f85b99e6911.tar.bz2 |
Remove implicit conversions from scoped_refptr to T* in extensions/
This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.
BUG=110610
Review URL: https://codereview.chromium.org/503873002
Cr-Commit-Position: refs/heads/master@{#291770}
Diffstat (limited to 'extensions/renderer/api')
-rw-r--r-- | extensions/renderer/api/serial/data_receiver_unittest.cc | 2 | ||||
-rw-r--r-- | extensions/renderer/api/serial/data_sender_unittest.cc | 2 | ||||
-rw-r--r-- | extensions/renderer/api/serial/serial_api_unittest.cc | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/extensions/renderer/api/serial/data_receiver_unittest.cc b/extensions/renderer/api/serial/data_receiver_unittest.cc index 36a4d45..f223cb3 100644 --- a/extensions/renderer/api/serial/data_receiver_unittest.cc +++ b/extensions/renderer/api/serial/data_receiver_unittest.cc @@ -27,7 +27,7 @@ class DataReceiverTest : public ApiTestBase { } virtual void TearDown() OVERRIDE { - if (sender_) { + if (sender_.get()) { sender_->ShutDown(); sender_ = NULL; } diff --git a/extensions/renderer/api/serial/data_sender_unittest.cc b/extensions/renderer/api/serial/data_sender_unittest.cc index 8fa9251..7774f10 100644 --- a/extensions/renderer/api/serial/data_sender_unittest.cc +++ b/extensions/renderer/api/serial/data_sender_unittest.cc @@ -27,7 +27,7 @@ class DataSenderTest : public ApiTestBase { } virtual void TearDown() OVERRIDE { - if (receiver_) { + if (receiver_.get()) { receiver_->ShutDown(); receiver_ = NULL; } diff --git a/extensions/renderer/api/serial/serial_api_unittest.cc b/extensions/renderer/api/serial/serial_api_unittest.cc index 530ce2e..799ecbb 100644 --- a/extensions/renderer/api/serial/serial_api_unittest.cc +++ b/extensions/renderer/api/serial/serial_api_unittest.cc @@ -314,7 +314,7 @@ class SerialApiTest : public ApiTestBase { } virtual void TearDown() OVERRIDE { - if (io_handler_) + if (io_handler_.get()) EXPECT_TRUE(io_handler_->HasOneRef()); ApiTestBase::TearDown(); } @@ -323,7 +323,7 @@ class SerialApiTest : public ApiTestBase { private: scoped_refptr<device::SerialIoHandler> GetIoHandler() { - if (!io_handler_) + if (!io_handler_.get()) io_handler_ = new TestIoHandlerBase; return io_handler_; } |