Index: content/browser/browser_context.cc |
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc |
index 1e7f2c38205d9b210a1500f0868df6a94a4a2301..b112aa2a51546951cdb685793e2b2ea30efafa27 100644 |
--- a/content/browser/browser_context.cc |
+++ b/content/browser/browser_context.cc |
@@ -441,15 +441,14 @@ void BrowserContext::Initialize( |
service_manager::mojom::ServiceRequest service_request(&service); |
service_manager::mojom::PIDReceiverPtr pid_receiver; |
- service_manager::Connector::ConnectParams params( |
- service_manager::Identity(mojom::kBrowserServiceName, new_id)); |
- params.set_client_process_connection(std::move(service), |
- mojo::MakeRequest(&pid_receiver)); |
+ service_manager::Identity identity(mojom::kBrowserServiceName, new_id); |
+ service_manager_connection->GetConnector()->RegisterService( |
+ identity, std::move(service), mojo::MakeRequest(&pid_receiver)); |
pid_receiver->SetPID(base::GetCurrentProcId()); |
BrowserContextServiceManagerConnectionHolder* connection_holder = |
new BrowserContextServiceManagerConnectionHolder( |
- service_manager_connection->GetConnector()->Connect(¶ms), |
+ service_manager_connection->GetConnector()->Connect(identity), |
std::move(service_request)); |
browser_context->SetUserData(kServiceManagerConnection, connection_holder); |