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

Unified Diff: chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h

Issue 2084903002: Moved BrowsingDataCounter and part of BrowsingDataCounterUtils to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/ui/webui/settings/settings_clear_browsing_data_handler.h
diff --git a/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h b/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h
index aa11f7a2db3693769efc36f31330aa4a6c2273b7..d8a09e5810c4b9962beb947554aafcebc168fb71 100644
--- a/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h
+++ b/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h
@@ -10,11 +10,11 @@
#include "base/macros.h"
#include "base/scoped_observer.h"
-#include "chrome/browser/browsing_data/browsing_data_counter.h"
#include "chrome/browser/browsing_data/browsing_data_remover.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
#include "components/browser_sync/browser/profile_sync_service.h"
+#include "components/browsing_data/counters/browsing_data_counter.h"
#include "components/prefs/pref_change_registrar.h"
namespace base {
@@ -72,16 +72,17 @@ class ClearBrowsingDataHandler : public SettingsPageUIHandler,
void UpdateHistoryDeletionDialog(bool show);
// Adds a browsing data |counter|.
- void AddCounter(std::unique_ptr<BrowsingDataCounter> counter);
+ void AddCounter(std::unique_ptr<browsing_data::BrowsingDataCounter> counter);
// Updates a counter text according to the |result|.
- void UpdateCounterText(std::unique_ptr<BrowsingDataCounter::Result> result);
+ void UpdateCounterText(
+ std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result);
// Cached profile corresponding to the WebUI of this handler.
Profile* profile_;
// Counters that calculate the data volume for individual data types.
- std::vector<std::unique_ptr<BrowsingDataCounter>> counters_;
+ std::vector<std::unique_ptr<browsing_data::BrowsingDataCounter>> counters_;
// ProfileSyncService to observe sync state changes.
ProfileSyncService* sync_service_;

Powered by Google App Engine
This is Rietveld 408576698