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

Unified Diff: mojo/services/test_service/test_service_impl.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
Index: mojo/services/test_service/test_service_impl.cc
diff --git a/mojo/services/test_service/test_service_impl.cc b/mojo/services/test_service/test_service_impl.cc
index 1f467e50e2ab41b5bb202338c05b898c0dc58e8f..b6c0c61f0f3f14d19776188a1669b4c0b1fa7f4e 100644
--- a/mojo/services/test_service/test_service_impl.cc
+++ b/mojo/services/test_service/test_service_impl.cc
@@ -4,6 +4,8 @@
#include "mojo/services/test_service/test_service_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/i18n/time_formatting.h"
#include "base/strings/utf_string_conversions.h"
@@ -20,7 +22,7 @@ TestServiceImpl::TestServiceImpl(ApplicationImpl* app_impl,
InterfaceRequest<TestService> request)
: application_(application),
app_impl_(app_impl),
- binding_(this, request.Pass()) {
+ binding_(this, std::move(request)) {
binding_.set_connection_error_handler(
[this]() { application_->ReleaseRef(); });
}
@@ -55,7 +57,7 @@ void TestServiceImpl::StartTrackingRequests(
const mojo::Callback<void()>& callback) {
TestRequestTrackerPtr tracker;
app_impl_->ConnectToService("mojo:test_request_tracker_app", &tracker);
- tracking_.reset(new TrackedService(tracker.Pass(), Name_, callback));
+ tracking_.reset(new TrackedService(std::move(tracker), Name_, callback));
}
} // namespace test
« no previous file with comments | « mojo/services/test_service/test_service_application.cc ('k') | mojo/services/test_service/test_time_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698