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

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

Issue 1775813002: Eliminate CapabilityFilter parameter from CreateInstance, instead reading it from the associated ma… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@41qual
Patch Set: . Created 4 years, 9 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
Index: mojo/shell/tests/shell/driver.cc
diff --git a/mojo/shell/tests/shell/driver.cc b/mojo/shell/tests/shell/driver.cc
index 68254f89e4a0b284359d221aea3155108f2779fc..7d9c8a799a0dd85aefe5bf5ebe06680dad182707 100644
--- a/mojo/shell/tests/shell/driver.cc
+++ b/mojo/shell/tests/shell/driver.cc
@@ -85,13 +85,6 @@ class Driver : public mojo::ShellClient,
mojo::ScopedMessagePipeHandle pipe =
mojo::edk::CreateParentMessagePipe(primordial_pipe_token);
- mojo::shell::mojom::CapabilityFilterPtr filter(
- mojo::shell::mojom::CapabilityFilter::New());
- mojo::Array<mojo::String> test_interfaces;
- test_interfaces.push_back(
- mojo::shell::test::mojom::CreateInstanceTest::Name_);
- filter->filter.insert("mojo:shell_unittest", std::move(test_interfaces));
-
mojo::shell::mojom::ShellClientFactoryPtr factory;
factory.Bind(mojo::InterfacePtrInfo<mojo::shell::mojom::ShellClientFactory>(
std::move(pipe), 0u));
@@ -103,7 +96,7 @@ class Driver : public mojo::ShellClient,
target->user_id = mojo::shell::mojom::kInheritUserID;
target->instance = "";
shell->CreateInstance(std::move(factory), std::move(target),
- std::move(filter), std::move(request),
+ std::move(request),
base::Bind(&Driver::OnConnectionCompleted,
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698