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

Unified Diff: mojo/runner/tracer.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/runner/task_runners.cc ('k') | mojo/shell/application_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/tracer.cc
diff --git a/mojo/runner/tracer.cc b/mojo/runner/tracer.cc
index 6334dbd4550e3f7b9d7ed4a624ec26bb722407e9..d709b4ef5077444a9de2682b3566e5af8c36a31d 100644
--- a/mojo/runner/tracer.cc
+++ b/mojo/runner/tracer.cc
@@ -6,6 +6,7 @@
#include <stdio.h>
#include <string.h>
+#include <utility>
#include "base/message_loop/message_loop.h"
#include "base/strings/string_number_conversions.h"
@@ -49,11 +50,11 @@ void Tracer::Start(const std::string& categories,
void Tracer::StartCollectingFromTracingService(
tracing::TraceCollectorPtr coordinator) {
- coordinator_ = coordinator.Pass();
+ coordinator_ = std::move(coordinator);
mojo::DataPipe data_pipe;
- coordinator_->Start(data_pipe.producer_handle.Pass(), categories_);
+ coordinator_->Start(std::move(data_pipe.producer_handle), categories_);
drainer_.reset(new mojo::common::DataPipeDrainer(
- this, data_pipe.consumer_handle.Pass()));
+ this, std::move(data_pipe.consumer_handle)));
}
void Tracer::StopAndFlushToFile() {
@@ -63,7 +64,7 @@ void Tracer::StopAndFlushToFile() {
void Tracer::ConnectToProvider(
mojo::InterfaceRequest<tracing::TraceProvider> request) {
- trace_provider_impl_.Bind(request.Pass());
+ trace_provider_impl_.Bind(std::move(request));
}
void Tracer::StopTracingAndFlushToDisk() {
« no previous file with comments | « mojo/runner/task_runners.cc ('k') | mojo/shell/application_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698