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

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

Issue 1342093003: Decouple the browsing data counters initialization and start. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Restart() to tests as well. Created 5 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_counter.h
diff --git a/chrome/browser/browsing_data/browsing_data_counter.h b/chrome/browser/browsing_data/browsing_data_counter.h
index e2a118ee6e372e48cf52ad3461bf56f49b339036..14063957d88e4ed0f8ca22c5fdf4ca7fe4d94d8b 100644
--- a/chrome/browser/browsing_data/browsing_data_counter.h
+++ b/chrome/browser/browsing_data/browsing_data_counter.h
@@ -29,12 +29,12 @@ class BrowsingDataCounter {
// The profile associated with this counter.
Profile* GetProfile() const;
- protected:
- // Called when some conditions have changed and the counting should be
- // restarted, e.g. when the deletion preference changed state or when
- // we were notified of data changes.
- void RestartCounting();
+ // Restarts the counter. Will be called automatically if the counting needs
+ // to be restarted, e.g. when the deletion preference changes state or when
+ // we are notified of data changes.
+ void Restart();
+ protected:
// Should be called from |Count| by any overriding class to indicate that
// counting is finished and report the |result|.
void ReportResult(uint32 result);
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698