Windows Clipboard: Replace base::LazyInstance<T>::Leaky with base::NoDestructor<T>.
static initialization is thread-safe, since C++11, and base::LazyInstance is deprecated[1]. Therefore, remove use of base::LazyInstance. This also provides the opportunity to remove a preprocessor macro. This CL also fixes TestURLExchangeFormatsViaCOM, which was using an incorrect FORMATETC argument. [1]: https://cs.chromium.org/chromium/src/base/lazy_instance.h?rcl=82bf98cd15cedc12558f475feb6770f0c9d903ea&l=5 Bug: 800760 Change-Id: Ib902ca5f7660c609f74c2681a9bf96cb828be52c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764890 Commit-Queue: Darwin Huang <huangdarwin@chromium.org> Auto-Submit: Darwin Huang <huangdarwin@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#690442}
Showing
Please register or sign in to comment