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

Unified Diff: services/image_decoder/image_decoder_service.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
« no previous file with comments | « services/image_decoder/image_decoder_service.h ('k') | services/navigation/navigation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/image_decoder/image_decoder_service.cc
diff --git a/services/image_decoder/image_decoder_service.cc b/services/image_decoder/image_decoder_service.cc
index ddfbf93d3467119e941261c6e18e04cf752a0ce4..5295e25299989e39804b2b4676759903a7c9ff57 100644
--- a/services/image_decoder/image_decoder_service.cc
+++ b/services/image_decoder/image_decoder_service.cc
@@ -39,10 +39,10 @@ std::unique_ptr<service_manager::Service> ImageDecoderService::Create() {
return base::MakeUnique<ImageDecoderService>();
}
-void ImageDecoderService::OnStart(service_manager::ServiceContext* context) {
+void ImageDecoderService::OnStart() {
ref_factory_.reset(new service_manager::ServiceContextRefFactory(
base::Bind(&service_manager::ServiceContext::RequestQuit,
- base::Unretained(context))));
+ base::Unretained(context()))));
}
bool ImageDecoderService::OnConnect(
« no previous file with comments | « services/image_decoder/image_decoder_service.h ('k') | services/navigation/navigation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698