Always store the usage table header in global storage
(This is a merge of http://go/wvgerrit/153551.) On CE CDM, storage is split between global and per-origin storage, and one type of storage cannot be used to access the other. (Though, until an upcoming commit lands, the tests will allow it.) On Android, both types of storage access the same filesystem. This means that code may run fine on Android but fail on CE CDM. The Usage Table Header code normally, explicitly accesses the header file via global storage. However, a few code paths would try to access it inconsistently via per-origin storage. This patch updates StoreTable() to always use the global storage, similar to how RestoreTable() already functions. Test: x86-64 w/ storage separated Test: build_and_run_all_unit_tests.sh Bug: 236400786 Bug: 192297621 Change-Id: Ie84cef43a7ad169ca8ab701d73c087294ee29705
This commit is contained in:
@@ -239,7 +239,7 @@ class UsageTableHeader {
|
||||
|
||||
// Stores the usage table and it's info. This will increment
|
||||
// |store_table_counter_| if successful.
|
||||
bool StoreTable(DeviceFiles* device_files);
|
||||
bool StoreTable();
|
||||
|
||||
CdmResponseType Shrink(metrics::CryptoMetrics* metrics,
|
||||
uint32_t number_of_usage_entries_to_delete);
|
||||
|
||||
Reference in New Issue
Block a user