DCHECK on self-assignment of PolicyMap
Add debug assertions against misuses of PolicyMap in self-assignment or self-modifying constructions. This CL doesn't bring proper support of such scenarios, but should at least make it more obvious that they're not supported (by documenting it and by catching during automated tests). Bug: none Change-Id: I9e8a60e48986fd5e3b61b15792b2a24cd6067b9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2233238 Commit-Queue: Maksim Ivanov <emaxx@chromium.org> Reviewed-by:Aya Elsayed <ayaelattar@google.com> Cr-Commit-Position: refs/heads/master@{#775711}
Showing
Please register or sign in to comment