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

Unified Diff: chrome/browser/ui/webui/options/clear_browser_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/options/clear_browser_data_handler.h
diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.h b/chrome/browser/ui/webui/options/clear_browser_data_handler.h
index ea7c3b499d93ad859a6040de83ecbe28029f2299..b0a68c22c923d9e97eca1ab585ead0e9fb8970d6 100644
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.h
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.h
@@ -7,10 +7,10 @@
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
-#include "chrome/browser/browsing_data/browsing_data_counter.h"
#include "chrome/browser/browsing_data/browsing_data_remover.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
#include "components/browser_sync/browser/profile_sync_service.h"
+#include "components/browsing_data/counters/browsing_data_counter.h"
#include "components/prefs/pref_member.h"
namespace options {
@@ -49,10 +49,11 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler,
virtual void OnBrowsingHistoryPrefChanged();
// Adds a |counter| for browsing data.
- void AddCounter(std::unique_ptr<BrowsingDataCounter> counter);
+ void AddCounter(std::unique_ptr<browsing_data::BrowsingDataCounter> counter);
// Updates a counter in the UI according to the |result|.
- void UpdateCounterText(std::unique_ptr<BrowsingDataCounter::Result> result);
+ void UpdateCounterText(
+ std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result);
// Implementation of SyncServiceObserver. Updates the support string at the
// bottom of the dialog.
@@ -80,7 +81,7 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler,
BooleanPrefMember allow_deleting_browser_history_;
// Counters that calculate the data volume for some of the data types.
- ScopedVector<BrowsingDataCounter> counters_;
+ ScopedVector<browsing_data::BrowsingDataCounter> counters_;
// Informs us whether the user is syncing their data.
ProfileSyncService* sync_service_;
« no previous file with comments | « chrome/browser/ui/browser_ui_prefs.cc ('k') | chrome/browser/ui/webui/options/clear_browser_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698