| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
absl::flat_hash_set<std::string> namespaces_to_delete;why did this change to a set? It looks like the code below already could not insert duplicates into `namespaces_to_delete`
if (namespaces_.find(namespace_id) != namespaces_.end() ||
protected_namespaces_from_scavenge_.find(namespace_id) !=
protected_namespaces_from_scavenge_.end()) {nit: probably easier to read using `base::Contains`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
why did this change to a set? It looks like the code below already could not insert duplicates into `namespaces_to_delete`
I switched back to a vector. You're correct that the set is not required for this scenario. There's one lookup inside a CHECK in the SessionStorageLevelDB code, which I switched to a DCHECK and base::Contains().
if (namespaces_.find(namespace_id) != namespaces_.end() ||
protected_namespaces_from_scavenge_.find(namespace_id) !=
protected_namespaces_from_scavenge_.end()) {nit: probably easier to read using `base::Contains`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[DomStorage] Implement SessionStorageLevelDB::DeleteSessions
For each deleted session, removes all of the session's storage key
metadata using the following LevelDB prefix:
"namespace-<session_id>-"
Optionally removes map key/value pairs using the LevelDB prefix:
"map-<map_id>-"
Callers of `DeleteSessions()` must specify which maps to delete. The
function must not remove maps still referenced by clones in other
sessions.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |