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

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

Issue 1137803005: Add a ServiceRegistry::ConnectToRemoteService that takes an InterfaceRequest<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@utility-process-report-js-memory
Patch Set: Remove Pass(). Created 5 years, 7 months 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 | « chrome/browser/task_manager/child_process_resource_provider.cc ('k') | no next file » | 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 2d65cf9ee93c7687d229cf162e03501785d6fb2f..efaefa03fa4681d8eb8386bce7d6edab3bccc224 100644
--- a/content/public/common/service_registry.h
+++ b/content/public/common/service_registry.h
@@ -54,8 +54,11 @@ class CONTENT_EXPORT ServiceRegistry {
// Connect to an interface provided by the remote service provider.
template <typename Interface>
void ConnectToRemoteService(mojo::InterfacePtr<Interface>* ptr) {
- ConnectToRemoteService(Interface::Name_,
- mojo::GetProxy(ptr).PassMessagePipe());
+ ConnectToRemoteService(mojo::GetProxy(ptr));
+ }
+ template <typename Interface>
+ void ConnectToRemoteService(mojo::InterfaceRequest<Interface> ptr) {
+ ConnectToRemoteService(Interface::Name_, ptr.PassMessagePipe());
}
virtual void ConnectToRemoteService(const base::StringPiece& name,
mojo::ScopedMessagePipeHandle handle) = 0;
« no previous file with comments | « chrome/browser/task_manager/child_process_resource_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698