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

Unified Diff: chrome/browser/media/webrtc_rtp_dump_writer.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 years, 1 month 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
Index: chrome/browser/media/webrtc_rtp_dump_writer.cc
diff --git a/chrome/browser/media/webrtc_rtp_dump_writer.cc b/chrome/browser/media/webrtc_rtp_dump_writer.cc
index e397da03cfd8b674691e072703db151724866260..2ad3f4f6b9c49f72bed9fdc6af0059ae1f414ea9 100644
--- a/chrome/browser/media/webrtc_rtp_dump_writer.cc
+++ b/chrome/browser/media/webrtc_rtp_dump_writer.cc
@@ -377,19 +377,14 @@ void WebRtcRtpDumpWriter::FlushBuffer(bool incoming,
// guaranteed to be deleted on the FILE thread before this object goes away.
base::Closure task =
base::Bind(&FileThreadWorker::CompressAndWriteToFileOnFileThread,
- base::Unretained(worker),
- Passed(&new_buffer),
- end_stream,
- result.get(),
- bytes_written.get());
+ base::Unretained(worker), base::Passed(&new_buffer),
+ end_stream, result.get(), bytes_written.get());
// OnFlushDone is necessary to avoid running the callback after this
// object is gone.
- base::Closure reply = base::Bind(&WebRtcRtpDumpWriter::OnFlushDone,
- weak_ptr_factory_.GetWeakPtr(),
- callback,
- Passed(&result),
- Passed(&bytes_written));
+ base::Closure reply = base::Bind(
+ &WebRtcRtpDumpWriter::OnFlushDone, weak_ptr_factory_.GetWeakPtr(),
+ callback, base::Passed(&result), base::Passed(&bytes_written));
// Define the task and reply outside the method call so that getting and
// passing the scoped_ptr does not depend on the argument evaluation order.
« no previous file with comments | « chrome/browser/media/webrtc_logging_handler_host.cc ('k') | chrome/browser/metrics/time_ticks_experiment_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698