Merge "Convert LazyServiceRegistrar usage to singleton"

This commit is contained in:
Peter Kalauskas
2019-08-23 19:25:23 +00:00
committed by Android (Google) Code Review

View File

@@ -34,7 +34,7 @@ int main(int /* argc */, char** /* argv */) {
configureRpcThreadpool(8, true /* callerWillJoin */);
// Setup hwbinder service
LazyServiceRegistrar serviceRegistrar;
auto serviceRegistrar = LazyServiceRegistrar::getInstance();
CHECK_EQ(serviceRegistrar.registerService(drmFactory, "widevine"), android::NO_ERROR)
<< "Failed to register Widevine Factory HAL";
CHECK_EQ(serviceRegistrar.registerService(cryptoFactory, "widevine"), android::NO_ERROR)