diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 04:16:27 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 04:16:27 +0000 |
commit | ad8e04ac88be37d5ccb6c2cf61f52b224dca493c (patch) | |
tree | 9bcb878643bdd9e5af6749fff469b2552e569907 /remoting/host | |
parent | 5af8043eb24ad60251d8a4e33192e3e6f59246a3 (diff) | |
download | chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.zip chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.gz chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.bz2 |
Convert implicit scoped_refptr constructor calls to explicit ones, part 1
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors.
BUG=28083
TEST=None
Review URL: http://codereview.chromium.org/4192012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/heartbeat_sender_unittest.cc | 4 | ||||
-rw-r--r-- | remoting/host/json_host_config_unittest.cc | 8 | ||||
-rw-r--r-- | remoting/host/simple_host_process.cc | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/remoting/host/heartbeat_sender_unittest.cc b/remoting/host/heartbeat_sender_unittest.cc index 6610607..c5f03a8 100644 --- a/remoting/host/heartbeat_sender_unittest.cc +++ b/remoting/host/heartbeat_sender_unittest.cc @@ -86,7 +86,7 @@ TEST_F(HeartbeatSenderTest, DoSendStanza) { // |iq_request| is freed by HeartbeatSender. MockIqRequest* iq_request = new MockIqRequest(jingle_client_); - scoped_refptr<HeartbeatSender> heartbeat_sender = new HeartbeatSender(); + scoped_refptr<HeartbeatSender> heartbeat_sender(new HeartbeatSender()); ASSERT_TRUE(heartbeat_sender->Init(config_, jingle_client_)); EXPECT_CALL(*jingle_client_, CreateIqRequest()) @@ -105,7 +105,7 @@ TEST_F(HeartbeatSenderTest, DoSendStanza) { TEST_F(HeartbeatSenderTest, CreateHeartbeatMessage) { // This test validates format of the heartbeat stanza. - scoped_refptr<HeartbeatSender> heartbeat_sender = new HeartbeatSender(); + scoped_refptr<HeartbeatSender> heartbeat_sender(new HeartbeatSender()); ASSERT_TRUE(heartbeat_sender->Init(config_, jingle_client_)); int64 start_time = static_cast<int64>(base::Time::Now().ToDoubleT()); diff --git a/remoting/host/json_host_config_unittest.cc b/remoting/host/json_host_config_unittest.cc index bd1bc14..14ee9bd 100644 --- a/remoting/host/json_host_config_unittest.cc +++ b/remoting/host/json_host_config_unittest.cc @@ -54,8 +54,8 @@ TEST_F(JsonHostConfigTest, InvalidFile) { ASSERT_TRUE(test_dir_.CreateUniqueTempDir()); FilePath non_existent_file = test_dir_.path().AppendASCII("non_existent.json"); - scoped_refptr<JsonHostConfig> target = - new JsonHostConfig(non_existent_file, message_loop_proxy_.get()); + scoped_refptr<JsonHostConfig> target( + new JsonHostConfig(non_existent_file, message_loop_proxy_.get())); EXPECT_FALSE(target->Read()); } @@ -63,8 +63,8 @@ TEST_F(JsonHostConfigTest, Read) { ASSERT_TRUE(test_dir_.CreateUniqueTempDir()); FilePath test_file = test_dir_.path().AppendASCII("read.json"); WriteTestFile(test_file); - scoped_refptr<JsonHostConfig> target = - new JsonHostConfig(test_file, message_loop_proxy_.get()); + scoped_refptr<JsonHostConfig> target( + new JsonHostConfig(test_file, message_loop_proxy_.get())); ASSERT_TRUE(target->Read()); std::string value; diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc index 744e100..d998ef9 100644 --- a/remoting/host/simple_host_process.cc +++ b/remoting/host/simple_host_process.cc @@ -133,12 +133,12 @@ int main(int argc, char** argv) { context.Start(); // Construct a chromoting host. - scoped_refptr<remoting::ChromotingHost> host = + scoped_refptr<remoting::ChromotingHost> host( new remoting::ChromotingHost(&context, config, capturer.release(), encoder.release(), - event_handler.release()); + event_handler.release())); // Let the chromoting host run until the shutdown task is executed. MessageLoop message_loop(MessageLoop::TYPE_UI); |