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

Unified Diff: remoting/protocol/protocol_test_client.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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 | « remoting/protocol/message_decoder_unittest.cc ('k') | remoting/protocol/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_test_client.cc
diff --git a/remoting/protocol/protocol_test_client.cc b/remoting/protocol/protocol_test_client.cc
index 8113db733848a3ca5b3390664f5e0b85f449933b..d61c0b5fd99edf34b58c90a3b8f4391710ca4b8d 100644
--- a/remoting/protocol/protocol_test_client.cc
+++ b/remoting/protocol/protocol_test_client.cc
@@ -125,7 +125,7 @@ void ProtocolTestConnection::Write(const std::string& str) {
if (str.empty())
return;
- scoped_refptr<net::IOBuffer> buf = new net::IOBuffer(str.length());
+ scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(str.length()));
memcpy(buf->data(), str.c_str(), str.length());
message_loop_->PostTask(
FROM_HERE, NewRunnableMethod(
@@ -362,7 +362,7 @@ int main(int argc, char** argv) {
usage(argv[0]);
std::string auth_token(cmd_line->GetSwitchValueASCII("auth_token"));
- scoped_refptr<ProtocolTestClient> client = new ProtocolTestClient();
+ scoped_refptr<ProtocolTestClient> client(new ProtocolTestClient());
client->Run(username, auth_token, host_jid);
« no previous file with comments | « remoting/protocol/message_decoder_unittest.cc ('k') | remoting/protocol/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698