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

Unified Diff: content/browser/download/drag_download_file.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
« no previous file with comments | « content/browser/device_orientation/provider_impl.cc ('k') | content/browser/download/drag_download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/drag_download_file.cc
diff --git a/content/browser/download/drag_download_file.cc b/content/browser/download/drag_download_file.cc
index e42127d09eb2a59bf5225b5936910eeb94a86bf3..b8bccb684d598c6a2909e16ccda451e922c6b4fb 100644
--- a/content/browser/download/drag_download_file.cc
+++ b/content/browser/download/drag_download_file.cc
@@ -4,6 +4,7 @@
#include "content/browser/download/drag_download_file.h"
+#include "base/bind.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "content/browser/browser_context.h"
@@ -112,8 +113,7 @@ void DragDownloadFile::InitiateDownload() {
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(this,
- &DragDownloadFile::InitiateDownload));
+ base::Bind(&DragDownloadFile::InitiateDownload, this));
return;
}
#endif
@@ -140,9 +140,7 @@ void DragDownloadFile::DownloadCompleted(bool is_successful) {
if (drag_message_loop_ != MessageLoop::current()) {
drag_message_loop_->PostTask(
FROM_HERE,
- NewRunnableMethod(this,
- &DragDownloadFile::DownloadCompleted,
- is_successful));
+ base::Bind(&DragDownloadFile::DownloadCompleted, this, is_successful));
return;
}
#endif
« no previous file with comments | « content/browser/device_orientation/provider_impl.cc ('k') | content/browser/download/drag_download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698