Commit 96cc8db9 authored by Daniel Rubery's avatar Daniel Rubery Committed by Commit Bot

Shutdown BinaryUploadServices with other Safe Browsing Services

Clearing the BinaryUploadServices is missing from

the associated Profile after the profile has been destroyed during
shutdown.

ServicesManagerDesktop: :ShutdownServices which can cause accesses to
Change-Id: Id4c0862dcae5d0772cd44ca43c3ec71ede95a864
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024030
Auto-Submit: Daniel Rubery <drubery@chromium.org>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Reviewed-by: default avatarXinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735624}
parent 2a148468
...@@ -123,6 +123,9 @@ void ServicesDelegateDesktop::ShutdownServices() { ...@@ -123,6 +123,9 @@ void ServicesDelegateDesktop::ShutdownServices() {
// Delete the ChromePasswordProtectionService instances. // Delete the ChromePasswordProtectionService instances.
password_protection_service_map_.clear(); password_protection_service_map_.clear();
// Delete the BinaryUploadService instances.
binary_upload_service_map_.clear();
// Must shut down last. // Must shut down last.
download_service_.reset(); download_service_.reset();
} }
......
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