summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browsing_data_remover.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-15 19:10:19 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-15 19:10:19 +0000
commit6ad7c091107a70f13d7887d28c23abf4e6d75f55 (patch)
tree11ec73aa20cd797aef377249be20eab1b2b0809b /chrome/browser/browsing_data_remover.cc
parent8682489dd336c58a99ff60b5709d701d012436d5 (diff)
downloadchromium_src-6ad7c091107a70f13d7887d28c23abf4e6d75f55.zip
chromium_src-6ad7c091107a70f13d7887d28c23abf4e6d75f55.tar.gz
chromium_src-6ad7c091107a70f13d7887d28c23abf4e6d75f55.tar.bz2
base::Bind: Cleanup almost-unused OldCompletionCallbacks.
BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8956014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r--chrome/browser/browsing_data_remover.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index d708cd9..2d32fc8 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -478,10 +478,14 @@ void BrowsingDataRemover::DoClearCache(int rv) {
// |cache_| can be null if it cannot be initialized.
if (cache_) {
if (delete_begin_.is_null()) {
- rv = cache_->DoomAllEntries(&cache_callback_);
+ rv = cache_->DoomAllEntries(
+ base::Bind(&BrowsingDataRemover::DoClearCache,
+ base::Unretained(this)));
} else {
- rv = cache_->DoomEntriesBetween(delete_begin_, delete_end_,
- &cache_callback_);
+ rv = cache_->DoomEntriesBetween(
+ delete_begin_, delete_end_,
+ base::Bind(&BrowsingDataRemover::DoClearCache,
+ base::Unretained(this)));
}
cache_ = NULL;
}