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

Unified Diff: webkit/glue/webkitplatformsupport_impl.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
« no previous file with comments | « net/test/test_server_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkitplatformsupport_impl.cc
diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc
index ce9cf2e8129213dc291a57759f1c049de643fd31..4ab1a54681d9159dc484d7a09f022ae77a1c1136 100644
--- a/webkit/glue/webkitplatformsupport_impl.cc
+++ b/webkit/glue/webkitplatformsupport_impl.cc
@@ -12,6 +12,7 @@
#include <vector>
+#include "base/bind.h"
#include "base/debug/trace_event.h"
#include "base/memory/singleton.h"
#include "base/message_loop.h"
@@ -543,7 +544,7 @@ void WebKitPlatformSupportImpl::stopSharedTimer() {
void WebKitPlatformSupportImpl::callOnMainThread(
void (*func)(void*), void* context) {
- main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func, context));
+ main_loop_->PostTask(FROM_HERE, base::Bind(func, context));
}
WebKit::WebThread* WebKitPlatformSupportImpl::createThread(const char* name) {
« no previous file with comments | « net/test/test_server_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698