diff options
author | Peter Kalauskas <peskal@google.com> | 2019-08-14 12:11:57 -0700 |
---|---|---|
committer | Peter Kalauskas <peskal@google.com> | 2019-08-19 21:15:30 +0000 |
commit | caed24ba9b5b792025c4e3f4b7b2a1367b5b5e1e (patch) | |
tree | 554d6c19b454c38a0d4f7377bd059928fcb12cbf /wifi/1.3 | |
parent | 0c7812c7f5a064edf836c6f47c36649f28e19224 (diff) | |
download | platform_hardware_interfaces-caed24ba9b5b792025c4e3f4b7b2a1367b5b5e1e.tar.gz platform_hardware_interfaces-caed24ba9b5b792025c4e3f4b7b2a1367b5b5e1e.tar.bz2 platform_hardware_interfaces-caed24ba9b5b792025c4e3f4b7b2a1367b5b5e1e.zip |
Convert LazyServiceRegistrar usage to singleton
Test: lshal
Bug: 139376253
Change-Id: I32cb803fb73aa15b52676847b6e7eb09b86657dc
Diffstat (limited to 'wifi/1.3')
-rw-r--r-- | wifi/1.3/default/service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/1.3/default/service.cpp b/wifi/1.3/default/service.cpp index fcbc37c12b..0b41d28da9 100644 --- a/wifi/1.3/default/service.cpp +++ b/wifi/1.3/default/service.cpp @@ -58,7 +58,7 @@ int main(int /*argc*/, char** argv) { std::make_shared<WifiIfaceUtil>(iface_tool), std::make_shared<WifiFeatureFlags>()); if (kLazyService) { - LazyServiceRegistrar registrar; + auto registrar = LazyServiceRegistrar::getInstance(); CHECK_EQ(registrar.registerService(service), android::NO_ERROR) << "Failed to register wifi HAL"; } else { |