Files
brave-core/chromium_src/content
Claudio DeSouza e0584713bb [cr147] GetStoragePartitionConfig moved to SecurityPrincipal
This is a simple accessor change for our uses.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/02e3f72738b5ad02e8f30ab40ea1467550a91f2c

commit 02e3f72738b5ad02e8f30ab40ea1467550a91f2c
Author: Viktoriya Bryhider <vbryhider@microsoft.com>
Date:   Mon Feb 23 19:24:08 2026 -0800

    Move GetStoragePartitionConfig to SecurityPrincipal interface

    Refactor storage partition configuration access by introducing
    GetStoragePartitionConfig() on the SecurityPrincipal interface and
    removing it from SiteInstance.

    Update all call sites to access the storage partition configuration
    through GetSecurityPrincipal().GetStoragePartitionConfig() instead of
    directly calling GetStoragePartitionConfig() on SiteInstance.

    This CL also adds unit test to ensure that the storage partition config
    remains unchanged once accessed, preventing accidental changes that
    could violate security boundaries.

    Most of existing functionality remains unchanged. The
    StoragePartitionConfig consistency verification now triggers on any call
    to GetSiteInfo()/GetSecurityPrincipal() before SetSiteInfoInternal()
    assigns the final SiteInfo, rather than only when the
    StoragePartitionConfig is explicitly accessed. This is a broader check
    than before, but it avoids the need to plumb an extra flag through
    SecurityPrincipal/SiteInfo to track whether GetSecurityPrincipal() was
    used specifically to read the StoragePartitionConfig.

    Bug: 397481045, 40526490
    Change-Id: I21e504383273f0adea8035fd6a9432b96920190d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7231185
    Commit-Queue: Viktoriya Bryhider <vbryhider@microsoft.com>
    Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
    Owners-Override: Alex Moshchuk <alexmos@chromium.org>
    Reviewed-by: Charlie Reis <creis@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1589122}
2026-03-26 19:25:22 -04:00
..