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

Unified Diff: mojo/services/test_service/test_service_application.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_application.cc
diff --git a/mojo/services/test_service/test_service_application.cc b/mojo/services/test_service/test_service_application.cc
index 7fd16fadbe5b593334a273c5eedbeab0ab5d404d..1f1cfe6bfd987fac99ca02596ac48bcc3d5209cd 100644
--- a/mojo/services/test_service/test_service_application.cc
+++ b/mojo/services/test_service/test_service_application.cc
@@ -5,6 +5,7 @@
#include "mojo/services/test_service/test_service_application.h"
#include <assert.h>
+#include <utility>
#include "mojo/application/public/cpp/application_connection.h"
#include "mojo/application/public/cpp/application_runner.h"
@@ -35,13 +36,13 @@ bool TestServiceApplication::ConfigureIncomingConnection(
void TestServiceApplication::Create(ApplicationConnection* connection,
InterfaceRequest<TestService> request) {
- new TestServiceImpl(app_impl_, this, request.Pass());
+ new TestServiceImpl(app_impl_, this, std::move(request));
AddRef();
}
void TestServiceApplication::Create(ApplicationConnection* connection,
InterfaceRequest<TestTimeService> request) {
- new TestTimeServiceImpl(app_impl_, request.Pass());
+ new TestTimeServiceImpl(app_impl_, std::move(request));
}
void TestServiceApplication::AddRef() {
« no previous file with comments | « mojo/services/test_service/test_request_tracker_impl.cc ('k') | mojo/services/test_service/test_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698