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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 663023007: Include high-fidelity metadata about a download in incident reports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: sync to r300417 Created 6 years, 2 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/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index a01305c46a0aef1277ecc3c05270b0abb1341e75..c1d125d66e4cc0bc87d7dd22f7df1d3d860c985a 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -281,8 +281,8 @@ void SafeBrowsingService::ShutDown() {
// dtor executes now since it may call the dtor of URLFetcher which relies
// on it.
csd_service_.reset();
- download_service_.reset();
incident_service_.reset();
+ download_service_.reset();
url_request_context_getter_ = NULL;
BrowserThread::PostNonNestableTask(
@@ -348,6 +348,14 @@ void SafeBrowsingService::RegisterDelayedAnalysisCallback(
#endif
}
+void SafeBrowsingService::AddDownloadManager(
+ content::DownloadManager* download_manager) {
+#if defined(FULL_SAFE_BROWSING)
+ if (incident_service_)
+ incident_service_->AddDownloadManager(download_manager);
+#endif
+}
+
SafeBrowsingUIManager* SafeBrowsingService::CreateUIManager() {
return new SafeBrowsingUIManager(this);
}

Powered by Google App Engine
This is Rietveld 408576698