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

Unified Diff: content/browser/utility_process_host.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/utility_process_host.cc
diff --git a/content/browser/utility_process_host.cc b/content/browser/utility_process_host.cc
index f34a22f0f61ff97509177caae499bb1a4104e4f7..f19e6a4bd188991b41c76df52abda039f0c72314 100644
--- a/content/browser/utility_process_host.cc
+++ b/content/browser/utility_process_host.cc
@@ -4,6 +4,7 @@
#include "content/browser/utility_process_host.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
@@ -139,14 +140,15 @@ bool UtilityProcessHost::StartProcess() {
bool UtilityProcessHost::OnMessageReceived(const IPC::Message& message) {
BrowserThread::PostTask(
client_thread_id_, FROM_HERE,
- NewRunnableMethod(client_.get(), &Client::OnMessageReceived, 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(&Client::OnMessageReceived, client_.get(), message)));
return true;
}
void UtilityProcessHost::OnProcessCrashed(int exit_code) {
BrowserThread::PostTask(
client_thread_id_, FROM_HERE,
- NewRunnableMethod(client_.get(), &Client::OnProcessCrashed, exit_code));
+ base::Bind(&Client::OnProcessCrashed, client_.get(), exit_code));
}
bool UtilityProcessHost::CanShutdown() {

Powered by Google App Engine
This is Rietveld 408576698