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

Unified Diff: services/service_manager/public/cpp/binder_registry.cc

Issue 2879843002: Reland 1: Enable overriding interface binders for any services running in current process. (Closed)
Patch Set: Identical with original CL Created 3 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
Index: services/service_manager/public/cpp/binder_registry.cc
diff --git a/services/service_manager/public/cpp/binder_registry.cc b/services/service_manager/public/cpp/binder_registry.cc
index d45591626694b4833eda0bb15edea48c8a051b34..d50de16f8b7fadd62e5030b115fc5efc8ea39603 100644
--- a/services/service_manager/public/cpp/binder_registry.cc
+++ b/services/service_manager/public/cpp/binder_registry.cc
@@ -19,6 +19,14 @@ void BinderRegistry::AddInterface(
callback, task_runner));
}
+void BinderRegistry::AddInterface(
+ const std::string& interface_name,
+ const Binder& binder_callback,
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) {
+ SetInterfaceBinder(interface_name, base::MakeUnique<GenericCallbackBinder>(
+ binder_callback, task_runner));
+}
+
void BinderRegistry::RemoveInterface(const std::string& interface_name) {
auto it = binders_.find(interface_name);
if (it != binders_.end())
« no previous file with comments | « services/service_manager/public/cpp/binder_registry.h ('k') | services/service_manager/public/cpp/interface_binder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698