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

Unified Diff: chrome/browser/browsing_data_remover.cc

Issue 8798001: base::Bind: Convert browsing_data_remover. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « chrome/browser/browsing_data_remover.h ('k') | net/disk_cache/backend_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index 45c5fcd678c99d8beab33d6255faa5d957e59f3d..6717495015130b1c288e51e048422290f05cbd5f 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -73,8 +73,6 @@ BrowsingDataRemover::BrowsingDataRemover(Profile* profile,
special_storage_policy_(profile->GetExtensionSpecialStoragePolicy()),
delete_begin_(delete_begin),
delete_end_(delete_end),
- ALLOW_THIS_IN_INITIALIZER_LIST(old_cache_callback_(
- this, &BrowsingDataRemover::DoClearCache)),
ALLOW_THIS_IN_INITIALIZER_LIST(cache_callback_(
base::Bind(&BrowsingDataRemover::DoClearCache,
base::Unretained(this)))),
@@ -99,8 +97,6 @@ BrowsingDataRemover::BrowsingDataRemover(Profile* profile,
special_storage_policy_(profile->GetExtensionSpecialStoragePolicy()),
delete_begin_(CalculateBeginDeleteTime(time_period)),
delete_end_(delete_end),
- ALLOW_THIS_IN_INITIALIZER_LIST(old_cache_callback_(
- this, &BrowsingDataRemover::DoClearCache)),
ALLOW_THIS_IN_INITIALIZER_LIST(cache_callback_(
base::Bind(&BrowsingDataRemover::DoClearCache,
base::Unretained(this)))),
@@ -452,10 +448,10 @@ void BrowsingDataRemover::DoClearCache(int rv) {
// |cache_| can be null if it cannot be initialized.
if (cache_) {
if (delete_begin_.is_null()) {
- rv = cache_->DoomAllEntries(&old_cache_callback_);
+ rv = cache_->DoomAllEntries(cache_callback_);
} else {
rv = cache_->DoomEntriesBetween(delete_begin_, delete_end_,
- &old_cache_callback_);
+ cache_callback_);
}
cache_ = NULL;
}
« no previous file with comments | « chrome/browser/browsing_data_remover.h ('k') | net/disk_cache/backend_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698