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

Unified Diff: mojo/services/test_service/test_time_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
« no previous file with comments | « mojo/services/test_service/test_time_service_impl.h ('k') | mojo/services/test_service/tracked_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/test_service/test_time_service_impl.cc
diff --git a/mojo/services/test_service/test_time_service_impl.cc b/mojo/services/test_service/test_time_service_impl.cc
index ae26a8ea57d5bbb1c363b4b31882668b1e251cce..4e17fd3e7a70a53b12e5daaf9139172ccabc240d 100644
--- a/mojo/services/test_service/test_time_service_impl.cc
+++ b/mojo/services/test_service/test_time_service_impl.cc
@@ -2,10 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "mojo/services/test_service/test_time_service_impl.h"
+
+#include <utility>
+
#include "base/time/time.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/services/test_service/test_request_tracker.mojom.h"
-#include "mojo/services/test_service/test_time_service_impl.h"
#include "mojo/services/test_service/tracked_service.h"
namespace mojo {
@@ -14,8 +17,7 @@ namespace test {
TestTimeServiceImpl::TestTimeServiceImpl(
ApplicationImpl* app_impl,
InterfaceRequest<TestTimeService> request)
- : app_impl_(app_impl), binding_(this, request.Pass()) {
-}
+ : app_impl_(app_impl), binding_(this, std::move(request)) {}
TestTimeServiceImpl::~TestTimeServiceImpl() {
}
@@ -24,7 +26,7 @@ void TestTimeServiceImpl::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));
}
void TestTimeServiceImpl::GetPartyTime(
« no previous file with comments | « mojo/services/test_service/test_time_service_impl.h ('k') | mojo/services/test_service/tracked_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698