Index: chrome/browser/bookmarks/bookmark_storage.cc |
diff --git a/chrome/browser/bookmarks/bookmark_storage.cc b/chrome/browser/bookmarks/bookmark_storage.cc |
index cca6f1a2ed0876bd6f72cc2066642b5f8b65b7fd..c0f79346091ea5d83813aac4de861808eec6aebd 100644 |
--- a/chrome/browser/bookmarks/bookmark_storage.cc |
+++ b/chrome/browser/bookmarks/bookmark_storage.cc |
@@ -4,9 +4,9 @@ |
#include "chrome/browser/bookmarks/bookmark_storage.h" |
+#include "base/bind.h" |
#include "base/compiler_specific.h" |
#include "base/file_util.h" |
-#include "base/file_util_proxy.h" |
#include "base/json/json_value_serializer.h" |
#include "base/metrics/histogram.h" |
#include "base/time.h" |
@@ -233,11 +233,10 @@ void BookmarkStorage::OnLoadFinished(bool file_exists, const FilePath& path) { |
SaveNow(); |
// Clean up after migration from history. |
- base::FileUtilProxy::Delete( |
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
- tmp_history_path_, |
- false, |
- NULL); |
+ BrowserThread::PostTask( |
+ BrowserThread::FILE, FROM_HERE, |
+ base::IgnoreReturn(base::Callback<bool(void)>( |
+ base::Bind(&file_util::Delete, tmp_history_path_, false)))); |
} |
} |