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

Unified Diff: content/browser/browser_context.cc

Issue 2610173003: Add RegisterService, split out of Connect(). (Closed)
Patch Set: . Created 3 years, 11 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
« no previous file with comments | « chrome/test/base/mojo_test_connector.cc ('k') | content/common/service_manager/child_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index b287a6c1610d02e32b1fbf5e761bf8578a7743a9..a5728e234d023033dc361d9d643a822757dd14f9 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -439,15 +439,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()->Start(
+ identity, std::move(service), mojo::MakeRequest(&pid_receiver));
pid_receiver->SetPID(base::GetCurrentProcId());
BrowserContextServiceManagerConnectionHolder* connection_holder =
new BrowserContextServiceManagerConnectionHolder(
- service_manager_connection->GetConnector()->Connect(&params),
+ service_manager_connection->GetConnector()->Connect(identity),
std::move(service_request));
browser_context->SetUserData(kServiceManagerConnection, connection_holder);
« no previous file with comments | « chrome/test/base/mojo_test_connector.cc ('k') | content/common/service_manager/child_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698