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

Unified Diff: mojo/shell/public/cpp/shell.h

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 | « mojo/shell/capability_filter_test.cc ('k') | mojo/shell/runner/child/native_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/shell.h
diff --git a/mojo/shell/public/cpp/shell.h b/mojo/shell/public/cpp/shell.h
index 00e4605bb9197a823069cec1a6ec5f4241e8543c..6861eabab7058667dd7480ad290c5da2b867406b 100644
--- a/mojo/shell/public/cpp/shell.h
+++ b/mojo/shell/public/cpp/shell.h
@@ -48,16 +48,17 @@ class Shell {
// Connect to application identified by |request->url| and connect to the
// service implementation of the interface identified by |Interface|.
template <typename Interface>
- void ConnectToService(ConnectParams* params, InterfacePtr<Interface>* ptr) {
+ void ConnectToInterface(ConnectParams* params, InterfacePtr<Interface>* ptr) {
scoped_ptr<Connection> connection = Connect(params);
if (connection)
connection->GetInterface(ptr);
}
template <typename Interface>
- void ConnectToService(const std::string& url, InterfacePtr<Interface>* ptr) {
+ void ConnectToInterface(const std::string& url,
+ InterfacePtr<Interface>* ptr) {
ConnectParams params(url);
params.set_filter(CreatePermissiveCapabilityFilter());
- return ConnectToService(&params, ptr);
+ return ConnectToInterface(&params, ptr);
}
// Initiate shutdown of this application. This may involve a round trip to the
« no previous file with comments | « mojo/shell/capability_filter_test.cc ('k') | mojo/shell/runner/child/native_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698