summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browsing_data_remover.cc
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 01:47:22 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 01:47:22 +0000
commit13dc779186dedb868df4373ba694c9f5d7cdf419 (patch)
treebf33dcecff152df552c29ab696677165baf04a94 /chrome/browser/browsing_data_remover.cc
parent08ca70052ad87e2fe620313585074b7ae453e64b (diff)
downloadchromium_src-13dc779186dedb868df4373ba694c9f5d7cdf419.zip
chromium_src-13dc779186dedb868df4373ba694c9f5d7cdf419.tar.gz
chromium_src-13dc779186dedb868df4373ba694c9f5d7cdf419.tar.bz2
Resolve crash when deleting history by preventing the deleter from being called multiple times. We need to add UI to make what's happening clearer to the user, but this gets us over the hump for now. Also change the history page to queue deletions.Allow history search from the new tab page.Make history title inclusion safer (createTextNode changes).Show starred status on history page.BUG=8214,8163,8271,8284
Review URL: http://codereview.chromium.org/28308 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r--chrome/browser/browsing_data_remover.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index 507112f..33a0c6d 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -34,12 +34,13 @@ void RunnableMethodTraits<BrowsingDataRemover>::ReleaseCallee(
BrowsingDataRemover* remover) {
}
+bool BrowsingDataRemover::removing_ = false;
+
BrowsingDataRemover::BrowsingDataRemover(Profile* profile, Time delete_begin,
Time delete_end)
: profile_(profile),
delete_begin_(delete_begin),
delete_end_(delete_end),
- removing_(false),
waiting_for_keywords_(false),
waiting_for_clear_history_(false),
waiting_for_clear_cache_(false) {
@@ -180,6 +181,7 @@ void BrowsingDataRemover::NotifyAndDeleteIfDone() {
if (!all_done())
return;
+ removing_ = false;
FOR_EACH_OBSERVER(Observer, observer_list_, OnBrowsingDataRemoverDone());
// History requests aren't happy if you delete yourself from the callback.