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

Unified Diff: services/shell/public/cpp/interface_provider.h

Issue 2374213002: Revert of Move registration of Java mojo interfaces to the new InterfaceRegistrar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java-content-interface-registry
Patch Set: Created 4 years, 3 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
Index: services/shell/public/cpp/interface_provider.h
diff --git a/services/shell/public/cpp/interface_provider.h b/services/shell/public/cpp/interface_provider.h
index 01c3c8ca449969484961b9e371fb40637ede58e1..5cf1d95ace4480664869c0d74602c80842f9af64 100644
--- a/services/shell/public/cpp/interface_provider.h
+++ b/services/shell/public/cpp/interface_provider.h
@@ -5,7 +5,6 @@
#ifndef SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_
#define SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_
-#include "base/bind.h"
#include "services/shell/public/interfaces/interface_provider.mojom.h"
namespace shell {
@@ -80,19 +79,6 @@
void GetInterface(const std::string& name,
mojo::ScopedMessagePipeHandle request_handle);
- // Returns a callback to GetInterface<Interface>(). This can be passed to
- // InterfaceRegistry::AddInterface() to forward requests.
- template <typename Interface>
- base::Callback<void(mojo::InterfaceRequest<Interface>)>
- CreateInterfaceFactory() {
- // InterfaceProvider::GetInterface() is overloaded, so static_cast to select
- // the overload that takes an mojo::InterfaceRequest<Interface>.
- return base::Bind(static_cast<void (InterfaceProvider::*)(
- mojo::InterfaceRequest<Interface>)>(
- &InterfaceProvider::GetInterface<Interface>),
- GetWeakPtr());
- }
-
private:
void SetBinderForName(
const std::string& name,

Powered by Google App Engine
This is Rietveld 408576698