AndroidTelemtryService should not create DownloadManagerImpl
Creating DownloadManagerImpl on startup is very costly as it loads a lot of downloads. So BrowserContext::GetDownloadManager() should not be called in classes like AndroidTelemetryService, which is created in browser startup. This CL fixes the behavior by making AndroidTelemetryService observe SimpleDownloadManagerCoordinator. The coordinator class is a wrapper of the DownloadManagerImpl and will not load any history downloads on startup. BUG=1003160 Change-Id: Iab9a42071821e01d4f70c779113cf23a2fb534f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1799684Reviewed-by:Daniel Rubery <drubery@chromium.org> Commit-Queue: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#695868}
Showing
Please register or sign in to comment