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

Unified Diff: mojo/shell/application_package_apptest.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
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/application_manager_unittest.cc ('k') | mojo/shell/capability_filter_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_package_apptest.cc
diff --git a/mojo/shell/application_package_apptest.cc b/mojo/shell/application_package_apptest.cc
index 7ccf0baf423cee7701f5fcce2d091d72721dcc1d..7d2e43c3d34183e77f9185520eee7867caf098c2 100644
--- a/mojo/shell/application_package_apptest.cc
+++ b/mojo/shell/application_package_apptest.cc
@@ -53,7 +53,8 @@ class ProvidedApplicationDelegate
// mojo::ShellClient:
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {}
bool AcceptConnection(Connection* connection) override {
- connection->AddService<test::mojom::ApplicationPackageApptestService>(this);
+ connection->AddInterface<test::mojom::ApplicationPackageApptestService>(
+ this);
return true;
}
@@ -99,8 +100,9 @@ class ApplicationPackageApptestDelegate
// mojo::ShellClient:
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {}
bool AcceptConnection(Connection* connection) override {
- connection->AddService<ContentHandler>(this);
- connection->AddService<test::mojom::ApplicationPackageApptestService>(this);
+ connection->AddInterface<ContentHandler>(this);
+ connection->AddInterface<test::mojom::ApplicationPackageApptestService>(
+ this);
return true;
}
« no previous file with comments | « mojo/shell/application_manager_unittest.cc ('k') | mojo/shell/capability_filter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698