0

win7dep: Remove code only needed for Win7

Remove a SCOPED_MAY_LOAD_LIBRARY_AT_BACKGROUND_PRIORITY usage that
was only needed for Win7, now that Win7 support is deprecated.

Bug: 1228507
Change-Id: Ibe8660f2e632a4a84e48323610713d863616e3e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4255288
Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1107810}
This commit is contained in:
David Bienvenu
2023-02-21 17:42:33 +00:00
committed by Chromium LUCI CQ
parent a662127d72
commit 59ea690d18

@ -251,13 +251,6 @@ PolicyLoaderWin::PolicyLoaderWin(
}
PolicyLoaderWin::~PolicyLoaderWin() {
// Mitigate the issues caused by loading DLLs or lazily resolving symbols on a
// background thread (http://crbug/973868) which can hold the process wide
// LoaderLock and cause contention on Foreground threads. This issue is solved
// on Windows version after Win7. This code can be removed when Win7 is no
// longer supported.
SCOPED_MAY_LOAD_LIBRARY_AT_BACKGROUND_PRIORITY();
if (!user_policy_watcher_failed_) {
::UnregisterGPNotification(user_policy_changed_event_.handle());
user_policy_watcher_.StopWatching();