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

Unified Diff: services/service_manager/tests/util.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 | « services/service_manager/tests/util.h ('k') | third_party/WebKit/Source/platform/ServiceConnector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/tests/util.cc
diff --git a/services/service_manager/tests/util.cc b/services/service_manager/tests/util.cc
index 1cc10889412134099d75bc70b1c8935dcabd345b..b15abd1fdc176aa807f03e48aef56b308ef575eb 100644
--- a/services/service_manager/tests/util.cc
+++ b/services/service_manager/tests/util.cc
@@ -36,7 +36,7 @@ void QuitLoop(base::RunLoop* loop) {
std::unique_ptr<Connection> LaunchAndConnectToProcess(
const std::string& target_exe_name,
- const Identity target,
+ const Identity& target,
service_manager::Connector* connector,
base::Process* process) {
base::FilePath target_path;
@@ -74,11 +74,9 @@ std::unique_ptr<Connection> LaunchAndConnectToProcess(
std::move(pipe), 0u));
service_manager::mojom::PIDReceiverPtr receiver;
- service_manager::Connector::ConnectParams params(target);
- params.set_client_process_connection(std::move(client),
- MakeRequest(&receiver));
+ connector->Start(target, std::move(client), MakeRequest(&receiver));
std::unique_ptr<service_manager::Connection> connection =
- connector->Connect(&params);
+ connector->Connect(target);
{
base::RunLoop loop;
connection->AddConnectionCompletedClosure(base::Bind(&QuitLoop, &loop));
« no previous file with comments | « services/service_manager/tests/util.h ('k') | third_party/WebKit/Source/platform/ServiceConnector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698