Commit fafa2b7c authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Update static initializers doc to not suggest LazyInstance.

base::LazyInstance is deprecated.

Change-Id: Ic8b37b335004ae0c5cd3cad1c82cb06f25551499
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2438575Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811856}
parent 0934ffe5
......@@ -17,9 +17,9 @@ http://neugierig.org/software/chromium/notes/2011/08/static-initializers.html
Common fixes include:
* Add constexpr,
* Use LazyInstance<>,
* Move global variable to be a static variable within a function that returns it.
* Add constexpr.
* Move global variable to be a static variable within a function that returns
it, often wrapped in `base::NoDestructor`.
## Listing Static Initializers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment