Merge "Make Properties::Init() Take Action Only Once"

This commit is contained in:
John Bruce
2019-01-17 00:30:07 +00:00
committed by Android (Google) Code Review
3 changed files with 17 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ bool GetAndroidProperty(const char* key, std::string* value) {
namespace wvcdm {
void Properties::Init() {
void Properties::InitOnce() {
oem_crypto_use_secure_buffers_ = kPropertyOemCryptoUseSecureBuffers;
oem_crypto_use_fifo_ = kPropertyOemCryptoUseFifo;
oem_crypto_use_userspace_buffers_ = kPropertyOemCryptoUseUserSpaceBuffers;