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

Unified Diff: content/common/service_manager/child_connection.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 | « content/browser/browser_context.cc ('k') | services/service_manager/connect_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_manager/child_connection.cc
diff --git a/content/common/service_manager/child_connection.cc b/content/common/service_manager/child_connection.cc
index d86117f70dec9fba3b2397dd7179ddb6433fb46e..68d4466f533975261c27c4a5773458a0e7bd5502 100644
--- a/content/common/service_manager/child_connection.cc
+++ b/content/common/service_manager/child_connection.cc
@@ -94,13 +94,12 @@ class ChildConnection::IOThreadContext
service_manager::mojom::PIDReceiverRequest pid_receiver_request(
&pid_receiver_);
- service_manager::Connector::ConnectParams params(child_identity);
- params.set_client_process_connection(std::move(service),
- std::move(pid_receiver_request));
-
- // In some unit testing scenarios a null connector is passed.
- if (connector)
- connection_ = connector->Connect(&params);
+ if (connector) {
+ connector->Start(child_identity,
+ std::move(service),
+ std::move(pid_receiver_request));
+ connection_ = connector->Connect(child_identity);
+ }
}
void ShutDownOnIOThread() {
« no previous file with comments | « content/browser/browser_context.cc ('k') | services/service_manager/connect_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698