-
Patrick Monette authored
This new member function allows the caller to modify an element in-place safely. The existing options to do this right now is either use const_cast<> then call Update() manually (was done by tests), or remove then reinsert the modified element afterwards. The issue with the later option is that you can't keep using the same HeapHandle pointer as it cleared during the removal. Bug: 971272 Change-Id: I202daa322f1160d601ffffa87ceb6a4dad0e291f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2530370Reviewed-by:
Albert J. Wong <ajwong@chromium.org> Reviewed-by:
Chris Hamilton <chrisha@chromium.org> Commit-Queue: Patrick Monette <pmonette@chromium.org> Cr-Commit-Position: refs/heads/master@{#827928}
699de95c