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

Unified Diff: services/file/file_service.cc

Issue 2435153004: Change Service contract to pass ServiceInfo instead of Identity (Closed)
Patch Set: . Created 4 years, 2 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/file/file_service.h ('k') | services/service_manager/background/tests/test_service.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 85a53b128a9c789e41791295542f6a1ed7612dc9..5a1b03c3dc2769dd005a45e06eb195b26ca454ed 100644
--- a/services/file/file_service.cc
+++ b/services/file/file_service.cc
@@ -88,14 +88,14 @@ FileService::~FileService() {
leveldb_service_runner_->DeleteSoon(FROM_HERE, leveldb_objects_.release());
}
-void FileService::OnStart(const service_manager::Identity& identity) {
+void FileService::OnStart(const service_manager::ServiceInfo& info) {
file_system_objects_.reset(new FileService::FileSystemObjects(
- GetUserDirForUserId(identity.user_id())));
+ GetUserDirForUserId(info.identity.user_id())));
leveldb_objects_.reset(
new FileService::LevelDBServiceObjects(leveldb_service_runner_));
}
-bool FileService::OnConnect(const service_manager::Identity& remote_identity,
+bool FileService::OnConnect(const service_manager::ServiceInfo& remote_info,
service_manager::InterfaceRegistry* registry) {
registry->AddInterface<leveldb::mojom::LevelDBService>(this);
registry->AddInterface<mojom::FileSystem>(this);
« no previous file with comments | « services/file/file_service.h ('k') | services/service_manager/background/tests/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698