summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkitplatformsupport_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webkitplatformsupport_impl.cc')
-rw-r--r--webkit/glue/webkitplatformsupport_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc
index ce9cf2e..4ab1a54 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) {