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

Unified Diff: content/browser/download/drag_download_util.cc

Issue 8556001: Convert NewRunnableFunction/NewRunnableMethod calls to use base::Bind(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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: content/browser/download/drag_download_util.cc
diff --git a/content/browser/download/drag_download_util.cc b/content/browser/download/drag_download_util.cc
index f112e96a0a8e504c11156f034f83b0818cb6f428..8c25eb3415929788c384941342d740927ddfc6f9 100644
--- a/content/browser/download/drag_download_util.cc
+++ b/content/browser/download/drag_download_util.cc
@@ -4,12 +4,12 @@
#include "content/browser/download/drag_download_util.h"
+#include "base/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
-#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "content/public/browser/browser_thread.h"
#include "googleurl/src/gurl.h"
@@ -102,13 +102,13 @@ void PromiseFileFinalizer::Cleanup() {
void PromiseFileFinalizer::OnDownloadCompleted(const FilePath& file_path) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(this, &PromiseFileFinalizer::Cleanup));
+ base::Bind(&PromiseFileFinalizer::Cleanup, this));
}
void PromiseFileFinalizer::OnDownloadAborted() {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(this, &PromiseFileFinalizer::Cleanup));
+ base::Bind(&PromiseFileFinalizer::Cleanup, this));
}
} // namespace drag_download_util
« no previous file with comments | « content/browser/download/drag_download_file.cc ('k') | content/browser/download/mhtml_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698