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

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
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..22f96fde62d81b46c516270044152c618d6141a7 100644
--- a/content/browser/browser_message_filter.cc
+++ b/content/browser/browser_message_filter.cc
@@ -4,6 +4,7 @@
#include "content/browser/browser_message_filter.h"
+#include "base/bind.h"
#include "base/logging.h"
#include "base/process.h"
#include "base/process_util.h"
@@ -49,7 +50,8 @@ bool BrowserMessageFilter::Send(IPC::Message* message) {
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
- NewRunnableMethod(this, &BrowserMessageFilter::Send, message));
+ base::IgnoreReturn<bool>(
James Hawkins 2011/11/14 17:57:06 #include "base/bind_helpers.h"
dcheng 2011/11/14 20:47:49 Done.
+ base::Bind(&BrowserMessageFilter::Send, this, message)));
return true;
}
@@ -75,8 +77,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') | content/browser/device_orientation/provider_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698