Merge "Convert LazyServiceRegistrar usage to singleton"
This commit is contained in:
committed by
Android (Google) Code Review
commit
9da0617606
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user