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

Unified Diff: services/service_manager/connect_util.cc

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 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: services/service_manager/connect_util.cc
diff --git a/services/service_manager/connect_util.cc b/services/service_manager/connect_util.cc
index 2ac6ec4b501738f263b47f579bc2644845bd68ad..c37b662680c23d99845013b98922392e704fd8af 100644
--- a/services/service_manager/connect_util.cc
+++ b/services/service_manager/connect_util.cc
@@ -17,14 +17,12 @@ mojo::ScopedMessagePipeHandle BindInterface(
const Identity& source,
const Identity& target,
const std::string& interface_name) {
- mojom::InterfaceProviderPtr remote_interfaces;
std::unique_ptr<ConnectParams> params(new ConnectParams);
params->set_source(source);
params->set_target(target);
- params->set_remote_interfaces(mojo::MakeRequest(&remote_interfaces));
- service_manager->Connect(std::move(params));
mojo::MessagePipe pipe;
- remote_interfaces->GetInterface(interface_name, std::move(pipe.handle1));
+ params->set_interface_request_info(interface_name, std::move(pipe.handle1));
+ service_manager->Connect(std::move(params));
return std::move(pipe.handle0);
}
« no previous file with comments | « content/shell/browser/layout_test/layout_test_content_browser_client.cc ('k') | services/service_manager/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698