| Index: content/public/test/test_service.cc
|
| diff --git a/content/public/test/test_service.cc b/content/public/test/test_service.cc
|
| index 685479853bec28bd05c8c54ee32ee4bb8fbdd91a..4e45f2113c955f0ce13573ed1c23e8deae23964d 100644
|
| --- a/content/public/test/test_service.cc
|
| +++ b/content/public/test/test_service.cc
|
| @@ -10,23 +10,25 @@
|
| #include "base/message_loop/message_loop.h"
|
| #include "services/service_manager/public/cpp/connection.h"
|
| #include "services/service_manager/public/cpp/connector.h"
|
| -#include "services/service_manager/public/cpp/interface_registry.h"
|
|
|
| namespace content {
|
|
|
| const char kTestServiceUrl[] = "system:content_test_service";
|
|
|
| TestService::TestService() : service_binding_(this) {
|
| + registry_.AddInterface<mojom::TestService>(this);
|
| }
|
|
|
| TestService::~TestService() {
|
| }
|
|
|
| -bool TestService::OnConnect(const service_manager::ServiceInfo& remote_info,
|
| - service_manager::InterfaceRegistry* registry) {
|
| - requestor_name_ = remote_info.identity.name();
|
| - registry->AddInterface<mojom::TestService>(this);
|
| - return true;
|
| +void TestService::OnBindInterface(
|
| + const service_manager::ServiceInfo& source_info,
|
| + const std::string& interface_name,
|
| + mojo::ScopedMessagePipeHandle interface_pipe) {
|
| + requestor_name_ = source_info.identity.name();
|
| + registry_.BindInterface(source_info.identity, interface_name,
|
| + std::move(interface_pipe));
|
| }
|
|
|
| void TestService::Create(const service_manager::Identity& remote_identity,
|
|
|