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

Unified Diff: chrome_frame/test/test_server.cc

Issue 8555001: base::Bind: Convert chrome_frame/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TaskMarshaller fix. 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: chrome_frame/test/test_server.cc
diff --git a/chrome_frame/test/test_server.cc b/chrome_frame/test/test_server.cc
index c43c5ef69d958b23fc281d059085c3b59c942657..f2d7de3892f89a5cec79f252f8626aa52e109b23 100644
--- a/chrome_frame/test/test_server.cc
+++ b/chrome_frame/test/test_server.cc
@@ -6,6 +6,7 @@
#include <objbase.h>
#include <urlmon.h>
+#include "base/bind.h"
#include "base/logging.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
@@ -324,8 +325,9 @@ void ConfigurableConnection::SendChunk() {
cur_pos_ += bytes_to_send;
if (cur_pos_ < size) {
- MessageLoop::current()->PostDelayedTask(FROM_HERE, NewRunnableMethod(this,
- &ConfigurableConnection::SendChunk), options_.timeout_);
+ MessageLoop::current()->PostDelayedTask(
+ FROM_HERE, base::Bind(&ConfigurableConnection::SendChunk, this),
+ options_.timeout_);
} else {
socket_ = 0; // close the connection.
}
@@ -371,9 +373,9 @@ void ConfigurableConnection::SendWithOptions(const std::string& headers,
data_.append("\r\n");
}
- MessageLoop::current()->PostDelayedTask(FROM_HERE,
- NewRunnableMethod(this, &ConfigurableConnection::SendChunk),
- options.timeout_);
+ MessageLoop::current()->PostDelayedTask(
+ FROM_HERE, base::Bind(&ConfigurableConnection::SendChunk, this),
+ options.timeout_);
}
} // namespace test_server

Powered by Google App Engine
This is Rietveld 408576698