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

Unified Diff: content/public/common/service_registry.h

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/browser/navigation_handle.cc ('k') | content/public/renderer/media_stream_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/service_registry.h
diff --git a/content/public/common/service_registry.h b/content/public/common/service_registry.h
index 5832131631a8cb2a487753ddda526f861c5d7848..ad8aaf0dadac407f61959539f6341c6e49e6980f 100644
--- a/content/public/common/service_registry.h
+++ b/content/public/common/service_registry.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_COMMON_SERVICE_REGISTRY_H_
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/callback.h"
@@ -65,7 +66,7 @@ class CONTENT_EXPORT ServiceRegistry {
const base::Callback<void(mojo::InterfaceRequest<Interface>)>
service_factory,
mojo::ScopedMessagePipeHandle handle) {
- service_factory.Run(mojo::MakeRequest<Interface>(handle.Pass()));
+ service_factory.Run(mojo::MakeRequest<Interface>(std::move(handle)));
}
};
« no previous file with comments | « content/public/browser/navigation_handle.cc ('k') | content/public/renderer/media_stream_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698