commit | 8d8268b8de8d26bbd857db48f702029d681282e5 | [log] [tgz] |
---|---|---|
author | Tsuyoshi Horo <horo@chromium.org> | Thu Jul 24 23:53:14 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 24 23:53:14 2025 |
tree | 7ecf9ff9b9ae3797fe0d87775663bf127536f65c | |
parent | d50a738cde9d1d8fdc2d64eb43e469194c9163fe [diff] |
disk_cache: Hardcode 'doomed' status in SQL queries This change refactors the SQL queries in SqlPersistentStore to hardcode the doomed status (0 for live, 1 for doomed) directly into the query strings, rather than passing it as a bind parameter. As part of this change: - SQL query constants and the Query enum have been renamed for clarity (e.g., kOpenEntry_SelectResources -> kOpenEntry_SelectLiveResources). - C++ code using these queries has been updated to remove the now-unnecessary BindBool() calls for the doomed parameter. Bug: 422065015 Change-Id: I7d97ee0f228e6a7e9375ec5085e7fcc9f7500d5b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6780860 Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Reviewed-by: Maks Orlovich <morlovich@chromium.org> Cr-Commit-Position: refs/heads/main@{#1491757}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.