Commit 7936c7c3 authored by Daniel Murphy's avatar Daniel Murphy Committed by Commit Bot

[SessionStorage] Added const to EraseIf

R=pwnall@chromium.org

Bug: 857464
Change-Id: I14a530854764fb07c875a5b1a19ce35359a662fb
Reviewed-on: https://chromium-review.googlesource.com/1150838Reviewed-by: default avatarChase Phillips <cmp@chromium.org>
Commit-Queue: Daniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578174}
parent 8596278e
......@@ -181,7 +181,7 @@ size_t LocalStorageCachedAreas::DOMStorageNamespace::TotalCacheSize() const {
bool LocalStorageCachedAreas::DOMStorageNamespace::CleanUpUnusedAreas() {
CheckPrefixes();
base::EraseIf(cached_areas,
[](auto& pair) { return pair.second->HasOneRef(); });
[](const auto& pair) { return pair.second->HasOneRef(); });
return cached_areas.empty();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment