Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22bd8f75 authored by Miriam Polzer's avatar Miriam Polzer
Browse files

Turn mLocalPolicies into a map

mLocalPolicies may be modified in some functions of policy engine, also
while being iterated over. As a first step of making this a bit more
safe, turn mLocalPolicies into a hash map instead of a sparse array.
This way, one can get a copy of all of the keys before iterating, hence
at least keeping the users that we iterate over stable during one loop.

Bug: 397370774
Test: btest a.d.c.DeviceManagementCoexistenceTest
Flag: EXEMPT refactor
Change-Id: I6f35375f3ddcbf2f9ab104e5db00e1e16a259123
parent ca2c173f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment