Chromium Code Reviews
DescriptionFix DCHECK hit on component policy fetch with empty ID
The DCHECK was caused by the attempt to wipe the cache data with
an empty subkey, which is not allowed by policy::ResourceCache.
This CL ensures that such invalid policy gets immediately discarded
at the validation phase, without reaching the later steps like
touching cache.
BUG=694712
TEST=New unit tests;
Manual test against current revision of YAPS (policy test server),
which is currently erroneously sending such invalid component
policy responses.
Review-Url: https://codereview.chromium.org/2706293005
Cr-Commit-Position: refs/heads/master@{#452048}
Committed: https://chromium.googlesource.com/chromium/src/+/ad9fcff98d11896c40edf5d0e9fca2c005b31fd2
Patch Set 1 #
Messages
Total messages: 14 (10 generated)
|
|||||||||||||||||||||||||||||||||||||