Commit 38216902 authored by jhawkins@chromium.org's avatar jhawkins@chromium.org

base::Bind: Make use of IgnoreResult.

BUG=none
R=csilv
TBR=michaeln

Review URL: https://chromiumcodereview.appspot.com/10857073

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152277 0039d316-1c4b-4281-b951-d872f2087c98
parent 32c22278
...@@ -44,13 +44,6 @@ static const FilePath::CharType kDiskCacheDirectoryName[] = ...@@ -44,13 +44,6 @@ static const FilePath::CharType kDiskCacheDirectoryName[] =
namespace { namespace {
// Helper with no return value for use with base::Bind.
// TODO(jhawkins): Figure out why base::IgnoreResult does not work for
// file_util::Delete on Windows.
void DeleteDirectory(const FilePath& path) {
file_util::Delete(path, true);
}
// Helpers for clearing data from the AppCacheDatabase. // Helpers for clearing data from the AppCacheDatabase.
bool DeleteGroupAndRelatedRecords(AppCacheDatabase* database, bool DeleteGroupAndRelatedRecords(AppCacheDatabase* database,
int64 group_id, int64 group_id,
...@@ -1810,7 +1803,8 @@ void AppCacheStorageImpl::OnDiskCacheInitialized(int rv) { ...@@ -1810,7 +1803,8 @@ void AppCacheStorageImpl::OnDiskCacheInitialized(int rv) {
if (!is_incognito_) { if (!is_incognito_) {
VLOG(1) << "Deleting existing appcache data and starting over."; VLOG(1) << "Deleting existing appcache data and starting over.";
db_thread_->PostTask( db_thread_->PostTask(
FROM_HERE, base::Bind(&DeleteDirectory, cache_directory_)); FROM_HERE, base::Bind(base::IgnoreResult(&file_util::Delete),
cache_directory_, true));
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment