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

Unified Diff: mojo/shell/connect_util.cc

Issue 1684783002: Rename ServiceProvider to InterfaceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/connect_util.h ('k') | mojo/shell/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_util.cc
diff --git a/mojo/shell/connect_util.cc b/mojo/shell/connect_util.cc
index f9dc2b2fa8cc6e8c0f22e436698d3cbfa0d3417b..1e3f7bffc7a1fcc8c4895c9345e3a288a4178e5b 100644
--- a/mojo/shell/connect_util.cc
+++ b/mojo/shell/connect_util.cc
@@ -13,18 +13,18 @@
namespace mojo {
namespace shell {
-ScopedMessagePipeHandle ConnectToServiceByName(
+ScopedMessagePipeHandle ConnectToInterfaceByName(
ApplicationManager* application_manager,
const GURL& application_url,
const std::string& interface_name) {
- ServiceProviderPtr services;
+ InterfaceProviderPtr remote_interfaces;
scoped_ptr<ConnectToApplicationParams> params(new ConnectToApplicationParams);
params->SetTarget(Identity(application_url, std::string(),
GetPermissiveCapabilityFilter()));
- params->set_services(GetProxy(&services));
+ params->set_remote_interfaces(GetProxy(&remote_interfaces));
application_manager->ConnectToApplication(std::move(params));
MessagePipe pipe;
- services->ConnectToService(interface_name, std::move(pipe.handle1));
+ remote_interfaces->GetInterface(interface_name, std::move(pipe.handle1));
return std::move(pipe.handle0);
}
« no previous file with comments | « mojo/shell/connect_util.h ('k') | mojo/shell/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698