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

Unified Diff: mojo/application/public/cpp/lib/interface_factory_connector.h

Issue 1538823002: Convert Pass()→std::move() in mojo/ (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
Index: mojo/application/public/cpp/lib/interface_factory_connector.h
diff --git a/mojo/application/public/cpp/lib/interface_factory_connector.h b/mojo/application/public/cpp/lib/interface_factory_connector.h
index 8d13bc241a4d20e692bcede358b794692a81e082..cd99dff61ee03057ac9e5060cb2657285a041a4c 100644
--- a/mojo/application/public/cpp/lib/interface_factory_connector.h
+++ b/mojo/application/public/cpp/lib/interface_factory_connector.h
@@ -5,6 +5,8 @@
#ifndef MOJO_APPLICATION_PUBLIC_CPP_LIB_INTERFACE_FACTORY_CONNECTOR_H_
#define MOJO_APPLICATION_PUBLIC_CPP_LIB_INTERFACE_FACTORY_CONNECTOR_H_
+#include <utility>
+
#include "mojo/application/public/cpp/interface_factory.h"
#include "mojo/application/public/cpp/service_connector.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -23,7 +25,7 @@ class InterfaceFactoryConnector : public ServiceConnector {
const std::string& interface_name,
ScopedMessagePipeHandle client_handle) override {
factory_->Create(application_connection,
- MakeRequest<Interface>(client_handle.Pass()));
+ MakeRequest<Interface>(std::move(client_handle)));
}
private:

Powered by Google App Engine
This is Rietveld 408576698