Index: net/ftp/ftp_ctrl_response_buffer.cc |
diff --git a/net/ftp/ftp_ctrl_response_buffer.cc b/net/ftp/ftp_ctrl_response_buffer.cc |
index 36486b7060980fcc0cc4e37cf1541c21d4d07f7a..b3f2d2399a142c4be7f62951129fc043286fb28e 100644 |
--- a/net/ftp/ftp_ctrl_response_buffer.cc |
+++ b/net/ftp/ftp_ctrl_response_buffer.cc |
@@ -79,15 +79,16 @@ int FtpCtrlResponseBuffer::ConsumeData(const char* data, int data_length) { |
namespace { |
-base::Value* NetLogFtpCtrlResponseCallback(const FtpCtrlResponse* response, |
- NetLogCaptureMode capture_mode) { |
- base::ListValue* lines = new base::ListValue(); |
+scoped_ptr<base::Value> NetLogFtpCtrlResponseCallback( |
+ const FtpCtrlResponse* response, |
+ NetLogCaptureMode capture_mode) { |
+ scoped_ptr<base::ListValue> lines(new base::ListValue()); |
lines->AppendStrings(response->lines); |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetInteger("status_code", response->status_code); |
- dict->Set("lines", lines); |
- return dict; |
+ dict->Set("lines", lines.Pass()); |
+ return dict.Pass(); |
} |
} // namespace |