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

Unified Diff: content/common/socket_stream_dispatcher.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 | « content/common/resource_dispatcher.cc ('k') | content/common/webmessageportchannel_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/socket_stream_dispatcher.cc
diff --git a/content/common/socket_stream_dispatcher.cc b/content/common/socket_stream_dispatcher.cc
index 6ee499ea0dc89befa0f5fe58f50eea4155abb67a..857284e77142cb87c0a913519535df7dd4c2e43f 100644
--- a/content/common/socket_stream_dispatcher.cc
+++ b/content/common/socket_stream_dispatcher.cc
@@ -6,11 +6,11 @@
#include <vector>
+#include "base/bind.h"
#include "base/id_map.h"
#include "base/lazy_instance.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop.h"
-#include "base/task.h"
#include "content/common/child_thread.h"
#include "content/common/socket_stream.h"
#include "content/common/socket_stream_messages.h"
@@ -89,8 +89,7 @@ void IPCWebSocketStreamHandleBridge::Connect(const GURL& url) {
DVLOG(1) << "Connect url=" << url;
child_thread_->message_loop()->PostTask(
FROM_HERE,
- NewRunnableMethod(this, &IPCWebSocketStreamHandleBridge::DoConnect,
- url));
+ base::Bind(&IPCWebSocketStreamHandleBridge::DoConnect, this, url));
}
bool IPCWebSocketStreamHandleBridge::Send(
@@ -110,7 +109,7 @@ void IPCWebSocketStreamHandleBridge::Close() {
AddRef(); // Released in DoClose().
child_thread_->message_loop()->PostTask(
FROM_HERE,
- NewRunnableMethod(this, &IPCWebSocketStreamHandleBridge::DoClose));
+ base::Bind(&IPCWebSocketStreamHandleBridge::DoClose, this));
}
void IPCWebSocketStreamHandleBridge::OnConnected(int max_pending_send_allowed) {
« no previous file with comments | « content/common/resource_dispatcher.cc ('k') | content/common/webmessageportchannel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698