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

Unified Diff: services/file/file_service.cc

Issue 2476063002: Service Manager: Rework Service and ServiceContext lifetime (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/navigation/navigation.cc » ('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 5a1b03c3dc2769dd005a45e06eb195b26ca454ed..5e7d4711a75111d09a372a69322aa8068fa76dd2 100644
--- a/services/file/file_service.cc
+++ b/services/file/file_service.cc
@@ -12,6 +12,8 @@
#include "services/file/file_system.h"
#include "services/file/user_id_map.h"
#include "services/service_manager/public/cpp/connection.h"
+#include "services/service_manager/public/cpp/interface_registry.h"
+#include "services/service_manager/public/cpp/service_context.h"
namespace file {
@@ -88,9 +90,9 @@ FileService::~FileService() {
leveldb_service_runner_->DeleteSoon(FROM_HERE, leveldb_objects_.release());
}
-void FileService::OnStart(const service_manager::ServiceInfo& info) {
+void FileService::OnStart(service_manager::ServiceContext* context) {
file_system_objects_.reset(new FileService::FileSystemObjects(
- GetUserDirForUserId(info.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/navigation/navigation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698