Chromium Code Reviews| 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() { |