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

Unified Diff: content/public/test/test_mojo_app.cc

Issue 1544293002: Convert Pass()→std::move() in //content (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 | « content/public/test/test_file_system_context.cc ('k') | content/public/test/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_mojo_app.cc
diff --git a/content/public/test/test_mojo_app.cc b/content/public/test/test_mojo_app.cc
index 13cb9affcd543b9bc2ea636eb3ae00950c77bf58..aac7665ab08ef71c57f4fb5b435965570f86a863 100644
--- a/content/public/test/test_mojo_app.cc
+++ b/content/public/test/test_mojo_app.cc
@@ -4,6 +4,8 @@
#include "content/public/test/test_mojo_app.h"
+#include <utility>
+
#include "base/logging.h"
#include "mojo/application/public/cpp/application_connection.h"
#include "mojo/application/public/cpp/application_impl.h"
@@ -32,7 +34,7 @@ bool TestMojoApp::ConfigureIncomingConnection(
void TestMojoApp::Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<TestMojoService> request) {
DCHECK(!service_binding_.is_bound());
- service_binding_.Bind(request.Pass());
+ service_binding_.Bind(std::move(request));
}
void TestMojoApp::DoSomething(const DoSomethingCallback& callback) {
« no previous file with comments | « content/public/test/test_file_system_context.cc ('k') | content/public/test/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698