Index: content/browser/dom_storage/local_storage_context_mojo_unittest.cc |
diff --git a/content/browser/dom_storage/local_storage_context_mojo_unittest.cc b/content/browser/dom_storage/local_storage_context_mojo_unittest.cc |
index 0f4fa583502eccf7c5d20622f75cda993a80f2eb..05733f82c0af5eec19534a7f1b132b1e3fff8370 100644 |
--- a/content/browser/dom_storage/local_storage_context_mojo_unittest.cc |
+++ b/content/browser/dom_storage/local_storage_context_mojo_unittest.cc |
@@ -617,14 +617,17 @@ class ServiceTestClient : public service_manager::test::ServiceTestClient, |
service_manager::mojom::ServiceFactory> { |
public: |
explicit ServiceTestClient(service_manager::test::ServiceTest* test) |
- : service_manager::test::ServiceTestClient(test) {} |
+ : service_manager::test::ServiceTestClient(test) { |
+ registry_.AddInterface<service_manager::mojom::ServiceFactory>(this); |
+ } |
~ServiceTestClient() override {} |
protected: |
- bool OnConnect(const service_manager::ServiceInfo& remote_info, |
- service_manager::InterfaceRegistry* registry) override { |
- registry->AddInterface<service_manager::mojom::ServiceFactory>(this); |
- return true; |
+ void OnBindInterface(const service_manager::ServiceInfo& source_info, |
+ const std::string& interface_name, |
+ mojo::ScopedMessagePipeHandle interface_pipe) override { |
+ registry_.BindInterface(source_info.identity, interface_name, |
+ std::move(interface_pipe)); |
} |
void CreateService(service_manager::mojom::ServiceRequest request, |
@@ -644,6 +647,7 @@ class ServiceTestClient : public service_manager::test::ServiceTestClient, |
} |
private: |
+ service_manager::BinderRegistry registry_; |
mojo::BindingSet<service_manager::mojom::ServiceFactory> |
service_factory_bindings_; |
std::unique_ptr<service_manager::ServiceContext> file_service_context_; |