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..1bc48d2d7736c873b7f51a6f6da6463f49aea6c8 100644 |
--- a/chrome/browser/browsing_data/downloads_counter.cc |
+++ b/chrome/browser/browsing_data/downloads_counter.cc |
@@ -10,12 +10,16 @@ |
#include "content/public/browser/download_manager.h" |
DownloadsCounter::DownloadsCounter(Profile* profile) |
- : BrowsingDataCounter(browsing_data::prefs::kDeleteDownloadHistory), |
+ : pref_name_(browsing_data::prefs::kDeleteDownloadHistory), |
profile_(profile) {} |
DownloadsCounter::~DownloadsCounter() { |
} |
+const std::string& DownloadsCounter::GetPrefName() const { |
+ return pref_name_; |
+} |
+ |
void DownloadsCounter::Count() { |
content::DownloadManager* download_manager = |
content::BrowserContext::GetDownloadManager(profile_); |