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

Unified Diff: services/service_manager/public/cpp/lib/service_test.cc

Issue 2487573002: Service Manager: Remove ServiceContext* arg from Service::OnStart() (Closed)
Patch Set: rebase Created 4 years, 1 month 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
Index: services/service_manager/public/cpp/lib/service_test.cc
diff --git a/services/service_manager/public/cpp/lib/service_test.cc b/services/service_manager/public/cpp/lib/service_test.cc
index 664756912f1c7e069a8fb71e102742b8a48131c9..4031c0c5e3eeec896725265a5e7dd44cc720317f 100644
--- a/services/service_manager/public/cpp/lib/service_test.cc
+++ b/services/service_manager/public/cpp/lib/service_test.cc
@@ -18,9 +18,9 @@ ServiceTestClient::ServiceTestClient(ServiceTest* test) : test_(test) {}
ServiceTestClient::~ServiceTestClient() {}
-void ServiceTestClient::OnStart(ServiceContext* context) {
- test_->OnStartCalled(context->connector(), context->identity().name(),
- context->identity().user_id());
+void ServiceTestClient::OnStart() {
+ test_->OnStartCalled(context()->connector(), context()->identity().name(),
+ context()->identity().user_id());
}
bool ServiceTestClient::OnConnect(const ServiceInfo& remote_info,
« no previous file with comments | « services/service_manager/public/cpp/lib/service_context.cc ('k') | services/service_manager/public/cpp/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698