forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lock down access to LayoutSuperclass<>() and verify protections.
It's not possible to enforce at compile-time that LayoutSuperclass<>() is only called while a layout is being processed, so enforce that at runtime instead, and verify that enforcement with a death test. This also adds nocompile tests that verify the PassKey protections on Layout(). As a result, it should be impossible to improperly Layout() directly from tests, so the presubmits blocking that are removed. Bug: 1521108 Change-Id: I8f7653c7bdcbbebe5e042310028b3f7de691614f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5259737 Reviewed-by: Dominic Battre <[email protected]> Reviewed-by: Allen Bauer <[email protected]> Commit-Queue: Peter Kasting <[email protected]> Cr-Commit-Position: refs/heads/main@{#1255197}
- Loading branch information
Showing
6 changed files
with
116 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters