commit | 36a57e9df0c67cbb5d9999ad4e2e0d55c46b6e4e | [log] [tgz] |
---|---|---|
author | Minoru Chikamune <chikamune@chromium.org> | Tue Jul 01 04:26:05 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 01 04:26:05 2025 |
tree | 24aa2aeb732a00f28e307a3d742ad5b339545108 | |
parent | 18d421d482dc82111aaf8addd13a5224282e0db3 [diff] |
Remove redundant null check for storage_shared_buffer The `storage_shared_buffer_` member in `ServiceWorkerStorage` and `ServiceWorkerRegistry` is guaranteed to be non-null throughout their lifetime. This CL removes the redundant null checks before using `storage_shared_buffer_` to simplify the code. To enforce this non-null invariant at compile time, the accessor methods are also updated to return a reference instead of a `scoped_refptr`. Bug: 428130197 Change-Id: I43c732cd4a0c5156dd8c023c0d0d3f4bf4d26d98 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6687015 Commit-Queue: Minoru Chikamune <chikamune@chromium.org> Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@chromium.org> Reviewed-by: Shunya Shishido <sisidovski@chromium.org> Cr-Commit-Position: refs/heads/main@{#1480856}
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.