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

Unified Diff: chrome/browser/browsing_data/downloads_counter.cc

Issue 2153863002: Move counters for passwords, history and autofill to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate_build_targets_in_components_bd
Patch Set: Fixed dependencies Created 4 years, 5 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/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_);

Powered by Google App Engine
This is Rietveld 408576698