Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from base::PassKey to base::WrapUnique.
Since Encryptor has a private constructor, to create a unique_ptr for storage in the OSCryptAsync object, a base::PassKey was being used. However, an alternative method is simply to use base::WrapUnique as it can access the private constructor, and this pattern is more commonly used in Chromium code. This CL removes the base::PassKey and replaces it base::WrapUnique. No functional changes. BUG=1373092 Change-Id: I97efc070fb225676e47b74453ef498f8c56eb6f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4348030 Reviewed-by: James Forshaw <forshaw@chromium.org> Commit-Queue: Will Harris <wfh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1118981}
- Loading branch information
Will Harris
authored and
Chromium LUCI CQ
committed
Mar 18, 2023
1 parent
f2fe037
commit daf6fca
Showing
3 changed files
with
3 additions
and
8 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