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

Unified Diff: content/browser/mojo/mojo_app_connection_impl.cc

Issue 1687693002: Rename ConnectToService to ConnectToInterface() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sp2
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 | « content/browser/mojo/mojo_app_connection_impl.h ('k') | content/browser/mojo/mojo_shell_client_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_app_connection_impl.cc
diff --git a/content/browser/mojo/mojo_app_connection_impl.cc b/content/browser/mojo/mojo_app_connection_impl.cc
index 7b0aa7ceaade85a97425cad828188a69509d80ab..cf8d1c249b4995529e80fb873695dfa5580094a1 100644
--- a/content/browser/mojo/mojo_app_connection_impl.cc
+++ b/content/browser/mojo/mojo_app_connection_impl.cc
@@ -30,7 +30,7 @@ scoped_ptr<MojoAppConnection> MojoAppConnection::Create(
MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url,
const GURL& requestor_url) {
MojoShellContext::ConnectToApplication(
- url, requestor_url, mojo::GetProxy(&services_),
+ url, requestor_url, mojo::GetProxy(&interfaces_),
mojo::InterfaceProviderPtr(),
mojo::shell::GetPermissiveCapabilityFilter(),
base::Bind(&OnGotRemoteIDs));
@@ -39,10 +39,10 @@ MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url,
MojoAppConnectionImpl::~MojoAppConnectionImpl() {
}
-void MojoAppConnectionImpl::ConnectToService(
- const std::string& service_name,
+void MojoAppConnectionImpl::GetInterface(
+ const std::string& interface_name,
mojo::ScopedMessagePipeHandle handle) {
- services_->GetInterface(service_name, std::move(handle));
+ interfaces_->GetInterface(interface_name, std::move(handle));
}
} // namespace content
« no previous file with comments | « content/browser/mojo/mojo_app_connection_impl.h ('k') | content/browser/mojo/mojo_shell_client_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698