Index: ipc/ipc_logging.cc |
diff --git a/ipc/ipc_logging.cc b/ipc/ipc_logging.cc |
index f6e91c44f65bfaa7ee491231e03edb668b2ee005..3fbbfbeadf08b05841bba013d454b7be0fcae25a 100644 |
--- a/ipc/ipc_logging.cc |
+++ b/ipc/ipc_logging.cc |
@@ -8,6 +8,7 @@ |
#define IPC_MESSAGE_MACROS_LOG_ENABLED |
#endif |
+#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/location.h" |
#include "base/logging.h" |
@@ -163,8 +164,7 @@ void Logging::OnPostDispatchMessage(const Message& message, |
if (MessageLoop::current() == main_thread_) { |
Log(data); |
} else { |
- main_thread_->PostTask(FROM_HERE, NewRunnableMethod( |
- this, &Logging::Log, data)); |
+ main_thread_->PostTask(FROM_HERE, base::Bind(&Logging::Log, this, data)); |
csilv
2011/11/12 03:49:50
make 'this' unretained, here and below
James Hawkins
2011/11/12 18:02:19
Done.
|
} |
} |
@@ -233,8 +233,8 @@ void Logging::Log(const LogData& data) { |
queued_logs_.push_back(data); |
if (!queue_invoke_later_pending_) { |
queue_invoke_later_pending_ = true; |
- MessageLoop::current()->PostDelayedTask(FROM_HERE, NewRunnableMethod( |
- this, &Logging::OnSendLogs), kLogSendDelayMs); |
+ MessageLoop::current()->PostDelayedTask( |
+ FROM_HERE, base::Bind(&Logging::OnSendLogs, this), kLogSendDelayMs); |
} |
} |
} |