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

Unified Diff: chrome/browser/download/download_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: skip on shutdown 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/download/download_service.cc
diff --git a/chrome/browser/download/download_service.cc b/chrome/browser/download/download_service.cc
index f69dcc4eb262a02b7a86d652bdce42847fe479a6..3d42abda1719e4be7c6fc3e898c3851f0d2c575d 100644
--- a/chrome/browser/download/download_service.cc
+++ b/chrome/browser/download/download_service.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/net/chrome_net_log.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "content/public/browser/download_manager.h"
#if defined(ENABLE_EXTENSIONS)
@@ -64,6 +65,9 @@ ChromeDownloadManagerDelegate* DownloadService::GetDownloadManagerDelegate() {
manager,
scoped_ptr<DownloadHistory::HistoryAdapter>(
new DownloadHistory::HistoryAdapter(history))));
+
+ // Include this download manager in the set monitored by safe browsing.
+ g_browser_process->safe_browsing_service()->AddDownloadManager(manager);
mattm 2014/10/24 02:11:10 does this need an ifdef? And could this go in Chro
grt (UTC plus 2) 2014/10/30 19:07:35 ifdef added.
}
// Pass an empty delegate when constructing the DownloadUIController. The

Powered by Google App Engine
This is Rietveld 408576698