Add StoragePartition::GetPartitionDomain().
Adding GetPartitionDomain() method to make it easier to determine the partition domain and reduce the need for calls to GetStoragePartitionConfigForSite(). There are a few cases where it is unclear whether the domain computed from the site URL actually matches what was returned by the new method, so these cases now call a new GetPartitionDomain() helper function on SiteInstance. This function preserves legacy behavior and will generate crash dumps if we encounter any situations where the config and storage partition disagree. Bug: 1085275 Change-Id: I4fd02a91cf702f3849010d3723bf7a223b723785 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2252470 Commit-Queue: Aaron Colwell <acolwell@chromium.org> Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#791345}
Showing
Please register or sign in to comment