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

Unified Diff: chrome_frame/test/test_server_test.cc

Issue 8536037: base::Bind: Low-hanging fruit conversions of NewRunnableFunction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix 4. 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_test.cc
diff --git a/chrome_frame/test/test_server_test.cc b/chrome_frame/test/test_server_test.cc
index e358e99119c3373051fdb9029dbbb9b11c0affc4..4175d22eda0111ae1b46aa6930881ad37e1d549b 100644
--- a/chrome_frame/test/test_server_test.cc
+++ b/chrome_frame/test/test_server_test.cc
@@ -6,6 +6,7 @@
#include <wininet.h>
#include "base/basictypes.h"
+#include "base/bind.h"
#include "base/path_service.h"
#include "base/win/scoped_handle.h"
#include "chrome_frame/test/test_server.h"
@@ -145,8 +146,7 @@ TEST_F(TestServerTest, TestServer) {
// We should never hit this, but it's our way to break out of the test if
// things start hanging.
QuitMessageHit quit_msg(&loop);
- loop.PostDelayedTask(FROM_HERE,
- NewRunnableFunction(QuitMessageLoop, &quit_msg),
+ loop.PostDelayedTask(FROM_HERE, base::Bind(QuitMessageLoop, &quit_msg),
10 * 1000);
UrlTaskChain quit_task("http://localhost:1337/quit", NULL);
« no previous file with comments | « chrome_frame/test/net/test_automation_resource_message_filter.cc ('k') | chrome_frame/test/urlmon_moniker_integration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698