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

Unified Diff: mojo/shell/tests/application_manager/driver.cc

Issue 1761153002: Replace ChildController with ShellClientFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@29binding
Patch Set: . Created 4 years, 10 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 | « mojo/shell/runner/host/out_of_process_native_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/application_manager/driver.cc
diff --git a/mojo/shell/tests/application_manager/driver.cc b/mojo/shell/tests/application_manager/driver.cc
index 5b114de9512a4dde2b4787eb5ff132732a8f0a6d..824a8900853a1604755bf1e1990f2b07c1849c35 100644
--- a/mojo/shell/tests/application_manager/driver.cc
+++ b/mojo/shell/tests/application_manager/driver.cc
@@ -92,12 +92,15 @@ class Driver : public mojo::ShellClient,
filter->filter.insert("mojo:application_manager_unittest",
std::move(test_interfaces));
+ mojo::shell::mojom::ShellClientFactoryPtr factory;
+ factory.Bind(mojo::InterfacePtrInfo<mojo::shell::mojom::ShellClientFactory>(
+ std::move(pipe), 0u));
+
mojo::shell::mojom::ApplicationManagerPtr application_manager;
connector->ConnectToInterface("mojo:shell", &application_manager);
- application_manager->CreateInstanceForHandle(
- mojo::ScopedHandle(mojo::Handle(pipe.release().value())),
- "exe:application_manager_unittest_target", std::move(filter),
- std::move(request));
+ application_manager->CreateInstanceForFactory(
+ std::move(factory), "exe:application_manager_unittest_target",
+ std::move(filter), std::move(request));
base::LaunchOptions options;
#if defined(OS_WIN)
« no previous file with comments | « mojo/shell/runner/host/out_of_process_native_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698