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

Unified Diff: services/file/file_service.cc

Issue 2500683002: Revert of Service Manager: Remove ServiceContext* arg from Service::OnStart() (Closed)
Patch Set: 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/file/file_service.h ('k') | services/image_decoder/image_decoder_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/file/file_service.cc
diff --git a/services/file/file_service.cc b/services/file/file_service.cc
index c469fac960480e112da7bb6f68d90c7ba3672ac5..4e844209c4fa270fd82c4fa81f3b2f1cfaf12155 100644
--- a/services/file/file_service.cc
+++ b/services/file/file_service.cc
@@ -89,9 +89,9 @@
leveldb_service_runner_->DeleteSoon(FROM_HERE, leveldb_objects_.release());
}
-void FileService::OnStart() {
+void FileService::OnStart(service_manager::ServiceContext* context) {
file_system_objects_.reset(new FileService::FileSystemObjects(
- GetUserDirForUserId(context()->identity().user_id())));
+ GetUserDirForUserId(context->identity().user_id())));
leveldb_objects_.reset(
new FileService::LevelDBServiceObjects(leveldb_service_runner_));
}
« no previous file with comments | « services/file/file_service.h ('k') | services/image_decoder/image_decoder_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698