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

Unified Diff: content/browser/browser_message_filter.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 | « no previous file | content/browser/child_process_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_message_filter.cc
diff --git a/content/browser/browser_message_filter.cc b/content/browser/browser_message_filter.cc
index 9535ae6c212a222a7b3e4ff65e41e93397da7d97..7451009b5c619ee41b9fc699a9079628bfd2b05b 100644
--- a/content/browser/browser_message_filter.cc
+++ b/content/browser/browser_message_filter.cc
@@ -4,6 +4,8 @@
#include "content/browser/browser_message_filter.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/process.h"
#include "base/process_util.h"
@@ -49,7 +51,8 @@ bool BrowserMessageFilter::Send(IPC::Message* message) {
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
- NewRunnableMethod(this, &BrowserMessageFilter::Send, message));
+ base::IgnoreReturn<bool>(
+ base::Bind(&BrowserMessageFilter::Send, this, message)));
return true;
}
@@ -75,8 +78,8 @@ bool BrowserMessageFilter::OnMessageReceived(const IPC::Message& message) {
BrowserThread::PostTask(
thread, FROM_HERE,
- NewRunnableMethod(
- this, &BrowserMessageFilter::DispatchMessage, message));
+ base::IgnoreReturn<bool>(
+ base::Bind(&BrowserMessageFilter::DispatchMessage, this, message)));
return true;
}
« no previous file with comments | « no previous file | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698