Index: chrome/browser/browsing_data/downloads_counter.cc |
diff --git a/chrome/browser/browsing_data/downloads_counter.cc b/chrome/browser/browsing_data/downloads_counter.cc |
index 320a670c519b36497d2506728f7a6731ef80a836..e5591a16975b2ba19efff2dea532f88f6e994157 100644 |
--- a/chrome/browser/browsing_data/downloads_counter.cc |
+++ b/chrome/browser/browsing_data/downloads_counter.cc |
@@ -10,12 +10,15 @@ |
#include "content/public/browser/download_manager.h" |
DownloadsCounter::DownloadsCounter(Profile* profile) |
- : BrowsingDataCounter(browsing_data::prefs::kDeleteDownloadHistory), |
- profile_(profile) {} |
+ : profile_(profile) {} |
DownloadsCounter::~DownloadsCounter() { |
} |
+const char* DownloadsCounter::GetPrefName() const { |
+ return browsing_data::prefs::kDeleteDownloadHistory; |
+} |
+ |
void DownloadsCounter::Count() { |
content::DownloadManager* download_manager = |
content::BrowserContext::GetDownloadManager(profile_); |