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

Unified Diff: chrome/browser/bookmarks/bookmark_storage.cc

Issue 8231004: Remaining cleanup (base::Bind): Replacing FileUtilProxy calls with new callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got it building Created 9 years, 2 months 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
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))));
}
}

Powered by Google App Engine
This is Rietveld 408576698