Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4479)

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api_unittest.cc

Issue 2749823002: Restore KeyedServiceFactory diagnostics for context use-after-destroy. (Closed)
Patch Set: Refactor SiteEngagementService tests. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
index 1dfdc65b71ace841befe6ea2348ced65a41c9994..9082bdb3e066a3e9ce718b5d05b9dd09f1709f22 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
@@ -29,6 +29,12 @@ class TestDownloadService : public DownloadServiceImpl {
: DownloadServiceImpl(profile), profile_(profile) {}
~TestDownloadService() override {}
+ void Shutdown() override {
+ DownloadServiceImpl::Shutdown();
+ download_history_.reset();
+ router_.reset();
+ }
+
void set_download_history(std::unique_ptr<DownloadHistory> download_history) {
download_history_.swap(download_history);
}

Powered by Google App Engine
This is Rietveld 408576698