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

Unified Diff: content/child/mojo/mojo_application.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/child/child_thread_impl_browsertest.cc ('k') | content/child/mojo/type_converters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/mojo/mojo_application.cc
diff --git a/content/child/mojo/mojo_application.cc b/content/child/mojo/mojo_application.cc
index 242f1f18b7fb20bdfb9a8be85bcb3928e307d63a..cfa0e435aca810aefb22ba11b20698190ef54f79 100644
--- a/content/child/mojo/mojo_application.cc
+++ b/content/child/mojo/mojo_application.cc
@@ -4,6 +4,8 @@
#include "content/child/mojo/mojo_application.h"
+#include <utility>
+
#include "build/build_config.h"
#include "content/child/child_process.h"
#include "content/common/application_setup.mojom.h"
@@ -46,14 +48,14 @@ void MojoApplication::OnActivate(
ApplicationSetupPtr application_setup;
application_setup.Bind(
- mojo::InterfacePtrInfo<ApplicationSetup>(message_pipe.Pass(), 0u));
+ mojo::InterfacePtrInfo<ApplicationSetup>(std::move(message_pipe), 0u));
mojo::ServiceProviderPtr services;
mojo::ServiceProviderPtr exposed_services;
service_registry_.Bind(GetProxy(&exposed_services));
application_setup->ExchangeServiceProviders(GetProxy(&services),
- exposed_services.Pass());
- service_registry_.BindRemoteServiceProvider(services.Pass());
+ std::move(exposed_services));
+ service_registry_.BindRemoteServiceProvider(std::move(services));
}
} // namespace content
« no previous file with comments | « content/child/child_thread_impl_browsertest.cc ('k') | content/child/mojo/type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698