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

Unified Diff: chrome/browser/browsing_data/history_counter.h

Issue 2084903002: Moved BrowsingDataCounter and part of BrowsingDataCounterUtils to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed deps Created 4 years, 6 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/history_counter.h
diff --git a/chrome/browser/browsing_data/history_counter.h b/chrome/browser/browsing_data/history_counter.h
index 1fb8c589a8786617b32bbe55c3db037f9c15ec77..da93cb43f1269a616ce90938f9cc254d5b78d9f5 100644
--- a/chrome/browser/browsing_data/history_counter.h
+++ b/chrome/browser/browsing_data/history_counter.h
@@ -8,7 +8,8 @@
#include "base/memory/weak_ptr.h"
#include "base/task/cancelable_task_tracker.h"
#include "base/timer/timer.h"
-#include "chrome/browser/browsing_data/browsing_data_counter.h"
+#include "chrome/browser/profiles/profile.h"
+#include "components/browsing_data/counters/browsing_data_counter.h"
#include "components/history/core/browser/history_service.h"
#include "components/history/core/browser/web_history_service.h"
#include "components/sync_driver/sync_service_observer.h"
@@ -31,11 +32,10 @@ class HistoryCounter: public BrowsingDataCounter,
bool has_synced_visits_;
};
- HistoryCounter();
+ explicit HistoryCounter(Profile* profile);
~HistoryCounter() override;
void OnInitialized() override;
- const std::string& GetPrefName() const override;
// Whether there are counting tasks in progress. Only used for testing.
bool HasTrackedTasks();
@@ -45,7 +45,7 @@ class HistoryCounter: public BrowsingDataCounter,
void SetWebHistoryServiceForTesting(history::WebHistoryService* service);
private:
- const std::string pref_name_;
+ Profile* profile_;
BrowsingDataCounter::ResultInt local_result_;
bool has_synced_visits_;

Powered by Google App Engine
This is Rietveld 408576698