Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use base::NoDestructor instead of base::LazyInstance #40947

Merged
merged 7 commits into from Jan 12, 2024

Conversation

ckerr
Copy link
Member

@ckerr ckerr commented Jan 11, 2024

Description of Change

Second of a pair of PRs to stop using the deprecated class base::LazyInstance. Its documentation says to use base::NoDestructor instead, so that's what this PR does.

Any reviews welcomed. CC @codebytere and @miniak, who reviewed the previous #40927.

Checklist

Release Notes

Notes: none

@ckerr ckerr added semver/patch backwards-compatible bug fixes target/28-x-y PR should also be added to the "28-x-y" branch. target/29-x-y PR should also be added to the "29-x-y" branch. labels Jan 11, 2024
@ckerr ckerr requested a review from a team as a code owner January 11, 2024 00:25
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 11, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 12, 2024
@codebytere codebytere merged commit 80b220d into main Jan 12, 2024
17 checks passed
@codebytere codebytere deleted the refactor/use-base-NoDestructor-not-base-LazyInstance branch January 12, 2024 13:50
Copy link

release-clerk bot commented Jan 12, 2024

No Release Notes

@trop
Copy link
Contributor

trop bot commented Jan 12, 2024

I have automatically backported this PR to "28-x-y", please check out #40978

@trop trop bot added in-flight/28-x-y and removed target/28-x-y PR should also be added to the "28-x-y" branch. labels Jan 12, 2024
@trop
Copy link
Contributor

trop bot commented Jan 12, 2024

I have automatically backported this PR to "29-x-y", please check out #40979

@trop trop bot added in-flight/29-x-y merged/29-x-y PR was merged to the "29-x-y" branch. merged/28-x-y PR was merged to the "28-x-y" branch. and removed target/29-x-y PR should also be added to the "29-x-y" branch. in-flight/29-x-y labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/28-x-y PR was merged to the "28-x-y" branch. merged/29-x-y PR was merged to the "29-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants