0
Files
src/components/prefs
Ankush Singh cad9372bba Avoid CHECK against prefixed keys in WrapWithPrefixPrefStore
Currently, calling any getter/setter in WrapWithPrefixPrefStore with a
key prefixed with "the" prefix (the one that WrapWithPrefixPrefStore
works on), leads to a CHECK failure. However, WrapWithPrefixPrefStore
should not disallow having a pref with the prefix as a key, and it
should be the responsibility of the owner to ensure the prefix is not
used as a pref, if needed.

Bug: 336776819
Change-Id: I3c94ffa34696f3c1a5e804a7bc96a3b469907bc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5563686
Auto-Submit: Ankush Singh <ankushkush@google.com>
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Ankush Singh <ankushkush@google.com>
Cr-Commit-Position: refs/heads/main@{#1312780}
2024-06-10 15:16:03 +00:00
..