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

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

Issue 10915010: BrowsingDataRemover: Work around HistoryService not handling delete_end as expected. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added a todo 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc
index 58cbe5c231600ea3ceda5a9b290ca10ca6249791..b8e687b2325b13d522eee0574fb71eee75d4551d 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover.cc
@@ -242,8 +242,12 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask,
restrict_urls.insert(remove_origin_);
content::RecordAction(UserMetricsAction("ClearBrowsingData_History"));
waiting_for_clear_history_ = true;
+ // The history service doesn't correctly handle delete_end_. Work around
+ // it by always passing a NULL time here (it will delete everything until
+ // delete_begin_). TODO(sky, rohitrao): Remove this workaround when the
sky 2012/08/31 15:50:06 This worries me in so far as you're assuming delet
rohitrao (ping after 24h) 2012/08/31 15:53:35 Per an earlier comment, the Extensions API allows
+ // bug is fixed.
history_service->ExpireHistoryBetween(restrict_urls,
- delete_begin_, delete_end_,
+ delete_begin_, base::Time(),
&request_consumer_,
base::Bind(&BrowsingDataRemover::OnHistoryDeletionDone,
base::Unretained(this)));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698