| 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_;
|
|
|