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

Unified Diff: chrome/browser/sync/glue/http_bridge_unittest.cc

Issue 8726001: Converted remaining non-factory NewRunnable* calls to use base::Bind (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting 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 | « no previous file | chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/http_bridge_unittest.cc
diff --git a/chrome/browser/sync/glue/http_bridge_unittest.cc b/chrome/browser/sync/glue/http_bridge_unittest.cc
index 0c5e3b410e12337a04b4fba9d57e1b53810264ab..05325ec1fe4f87229d8e84ca77d8d5e61f9772bb 100644
--- a/chrome/browser/sync/glue/http_bridge_unittest.cc
+++ b/chrome/browser/sync/glue/http_bridge_unittest.cc
@@ -109,7 +109,7 @@ class ShuntedHttpBridge : public HttpBridge {
// We don't actually want to make a request for this test, so just callback
// as if it completed.
test_->GetIOThreadLoop()->PostTask(FROM_HERE,
- NewRunnableMethod(this, &ShuntedHttpBridge::CallOnURLFetchComplete));
+ base::Bind(&ShuntedHttpBridge::CallOnURLFetchComplete, this));
}
private:
~ShuntedHttpBridge() {}
@@ -136,8 +136,8 @@ TEST_F(HttpBridgeTest, TestUsesSameHttpNetworkSession) {
// URLRequestContextGetter::GetURLRequestContext on the IO thread.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(&HttpBridgeTest::TestSameHttpNetworkSession,
- MessageLoop::current(), this));
+ base::Bind(&HttpBridgeTest::TestSameHttpNetworkSession,
+ MessageLoop::current(), this));
MessageLoop::current()->Run();
}
@@ -278,8 +278,8 @@ TEST_F(HttpBridgeTest, Abort) {
int os_error = 0;
int response_code = 0;
- BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, NewRunnableFunction(
- &HttpBridgeTest::Abort, http_bridge));
+ BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
+ base::Bind(&HttpBridgeTest::Abort, http_bridge));
bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code);
EXPECT_FALSE(success);
EXPECT_EQ(net::ERR_ABORTED, os_error);
« no previous file with comments | « no previous file | chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698