-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "lacros: Check user dir is not accessed pre-login"
This is a reland of commit c444bc1 The original change was causing a compilation error in some builds, as the argument inside the DCHECKs refers to IsInitializedUserDataDir, which is not declared/defined in non-debug builds. This CL changes: - The complex !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) condition to the more readable DCHECK_IS_ON(). - Wraps the DCHECKs into `#if DCHECK_IS_ON()` blocks to avoid the previously mentioned compilation errors. Original change's description: > lacros: Check user dir is not accessed pre-login > > As part of the effort to execute more operations at login screen > before blocking waiting for the user to login, we want to remove > accesses to the cryptohome that happen early in the initialization > process. > > This change ensures (via DCHECKs) that any access to the cryptohome > happens after user dir initialization when prelaunching. > > BUG=1495212 > TEST=CQ > tast run ${DUT} lacros.Basic > tast run ${DUT} lacros.LoginScreenLaunch.rootfs > > Change-Id: Id6df5e28216beb8058e8349ca849bf53e9f46daf > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4944753 > Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> > Reviewed-by: Marc Treib <treib@chromium.org> > Commit-Queue: Andrea Orru <andreaorru@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1214708} BUG=1495212 Change-Id: Ie34ff8e25a551b33ed9b3d7b7e825ef6bdf70f3b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4975550 Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Reviewed-by: Marc Treib <treib@chromium.org> Commit-Queue: Andrea Orru <andreaorru@chromium.org> Cr-Commit-Position: refs/heads/main@{#1216769}
- Loading branch information
Andrea Orru
authored and
Chromium LUCI CQ
committed
Oct 30, 2023
1 parent
eb0d895
commit 3bdd67f
Showing
6 changed files
with
49 additions
and
1 deletion.
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