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

Unified Diff: services/test_service/test_service_impl.cc

Issue 924543003: Avoid InterfaceImpl in //services/test_service (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « services/test_service/test_service_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/test_service/test_service_impl.cc
diff --git a/services/test_service/test_service_impl.cc b/services/test_service/test_service_impl.cc
index 1a9cae39f0a21868576544633274043da940393f..21cab52222bbc52e99042f3989d03cff16ac784a 100644
--- a/services/test_service/test_service_impl.cc
+++ b/services/test_service/test_service_impl.cc
@@ -16,8 +16,12 @@ namespace mojo {
namespace test {
TestServiceImpl::TestServiceImpl(ApplicationImpl* app_impl,
- TestServiceApplication* application)
- : application_(application), app_impl_(app_impl) {
+ TestServiceApplication* application,
+ InterfaceRequest<TestService> request)
+ : application_(application),
+ app_impl_(app_impl),
+ binding_(this, request.Pass()) {
+ binding_.set_error_handler(this);
}
TestServiceImpl::~TestServiceImpl() {
« no previous file with comments | « services/test_service/test_service_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698