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

Unified Diff: mojo/services/tracing/trace_data_sink.cc

Issue 1539863002: Convert Pass()→std::move() in mojo/services/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing forward declare that was masked by pre-existing incorrect #include ordering. Created 5 years 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 | « mojo/services/tracing/public/cpp/tracing_impl.cc ('k') | mojo/services/tracing/trace_recorder_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/tracing/trace_data_sink.cc
diff --git a/mojo/services/tracing/trace_data_sink.cc b/mojo/services/tracing/trace_data_sink.cc
index 1174bfc06cc18176830bef7514d6ff9c1d81d573..e608a7452d623830bdcab8902a82e36224c374e5 100644
--- a/mojo/services/tracing/trace_data_sink.cc
+++ b/mojo/services/tracing/trace_data_sink.cc
@@ -4,6 +4,8 @@
#include "mojo/services/tracing/trace_data_sink.h"
+#include <utility>
+
#include "base/logging.h"
#include "mojo/common/data_pipe_utils.h"
@@ -12,8 +14,7 @@ using mojo::common::BlockingCopyFromString;
namespace tracing {
TraceDataSink::TraceDataSink(mojo::ScopedDataPipeProducerHandle pipe)
- : pipe_(pipe.Pass()), empty_(true) {
-}
+ : pipe_(std::move(pipe)), empty_(true) {}
TraceDataSink::~TraceDataSink() {
if (pipe_.is_valid())
« no previous file with comments | « mojo/services/tracing/public/cpp/tracing_impl.cc ('k') | mojo/services/tracing/trace_recorder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698