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

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: Updated Android code 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/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 3b4a4f181555043b561b22ccd485b4b489af35fb..214ef9b889e6ce6decd87992935774062b6f2283 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.
@@ -84,7 +85,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_;

Powered by Google App Engine
This is Rietveld 408576698