Using a flat_set to get rid of const_cast.
TemplateURLSet should be small enougth to use flat_set. When implementing flat_sets, we specificly desided to provide a different solution for Librayr Working Group issue: #2059, which allows to just remove the const_cast. Here is a test for it: https://cs.chromium.org/chromium/src/base/containers/flat_tree_unittest.cc?sq=package:chromium&l=962 Change-Id: I4dfd5f3a5510c11ca4ef325dd0cb1e74fc7735f4 Reviewed-on: https://chromium-review.googlesource.com/995279Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Commit-Queue: Denis Yaroshevskiy <dyaroshev@yandex-team.ru> Cr-Commit-Position: refs/heads/master@{#548031}
Showing
Please register or sign in to comment