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

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

Issue 10898002: Refactor BrowsingDataRemover creation for clarity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_remover.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_remover.h
diff --git a/chrome/browser/browsing_data/browsing_data_remover.h b/chrome/browser/browsing_data/browsing_data_remover.h
index 5a1e9f879cdc69e42903523f76d99839a1808261..f2424eed4bd536a3cac145e33dff5f4129a6f5e2 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.h
+++ b/chrome/browser/browsing_data/browsing_data_remover.h
@@ -116,16 +116,18 @@ class BrowsingDataRemover : public content::NotificationObserver,
virtual ~Observer() {}
};
+ static BrowsingDataRemover* create(Profile* profile,
markusheintz_ 2012/08/28 10:35:50 Method names should start with capital letters. s/
+ base::Time delete_begin = base::Time(),
markusheintz_ 2012/08/28 10:35:50 I think default values for parameters are discoura
+ base::Time delete_end = base::Time::Max());
+ static BrowsingDataRemover* create(Profile* profile,
+ TimePeriod deletionPeriod,
+ base::Time delete_end = base::Time::Max());
+
// Creates a BrowsingDataRemover to remove browser data from the specified
// profile in the specified time range. Use Remove to initiate the removal.
BrowsingDataRemover(Profile* profile, base::Time delete_begin,
markusheintz_ 2012/08/28 10:35:50 I think you may want to make this constructor priv
base::Time delete_end);
- // Creates a BrowsingDataRemover to remove browser data from the specified
- // profile in the specified time range.
- BrowsingDataRemover(Profile* profile, TimePeriod time_period,
- base::Time delete_end);
-
// Removes the specified items related to browsing for all origins that match
// the provided |origin_set_mask| (see BrowsingDataHelper::OriginSetMask).
void Remove(int remove_mask, int origin_set_mask);
@@ -287,7 +289,7 @@ class BrowsingDataRemover : public content::NotificationObserver,
void OnClearedFormData();
// Calculate the begin time for the deletion range specified by |time_period|.
- base::Time CalculateBeginDeleteTime(TimePeriod time_period);
+ static base::Time CalculateBeginDeleteTime(TimePeriod time_period);
markusheintz_ 2012/08/28 10:35:50 After making this static, please order the methods
// Returns true if we're all done.
bool AllDone();
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698