summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kalauskas <peskal@google.com>2019-08-14 12:21:33 -0700
committerPeter Kalauskas <peskal@google.com>2019-08-14 13:45:56 -0700
commit8a7b267be83ae6960c5cee709d3c7f623627019e (patch)
tree5d1f5cece3d4c2d2a62ffdeb2d61cabb7034fc2e
parent0ebe8b8d36bfdb79edad10ca5d724c0261385913 (diff)
downloadcuttlefish_common-8a7b267be83ae6960c5cee709d3c7f623627019e.tar.gz
Convert LazyServiceRegistrar usage to singleton
Test: lshal Bug: 139376253 Change-Id: Ib1cbfabec23a488868e807a4a9c2b29cd960cc1e
-rw-r--r--guest/hals/health/storage/service.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/guest/hals/health/storage/service.cpp b/guest/hals/health/storage/service.cpp
index c54e5078..39ff08b1 100644
--- a/guest/hals/health/storage/service.cpp
+++ b/guest/hals/health/storage/service.cpp
@@ -32,7 +32,8 @@ int main() {
configureRpcThreadpool(1, true);
sp<IStorage> service = new Storage();
- status_t result = LazyServiceRegistrar().registerService(service);
+ auto serviceRegistrar = LazyServiceRegistrar::getInstance();
+ status_t result = serviceRegistrar.registerService(service);
if (result != OK) {
return result;