Index: Source/core/page/NetworkStateNotifier.cpp |
diff --git a/Source/core/page/NetworkStateNotifier.cpp b/Source/core/page/NetworkStateNotifier.cpp |
index 5d15f876abf65f0924f89c1327e98710d7876de7..989a5c6539aeb6243abb4dcae219b767120868dd 100644 |
--- a/Source/core/page/NetworkStateNotifier.cpp |
+++ b/Source/core/page/NetworkStateNotifier.cpp |
@@ -26,6 +26,7 @@ |
#include "config.h" |
#include "core/page/NetworkStateNotifier.h" |
+#include "core/dom/CrossThreadTask.h" |
#include "core/dom/ExecutionContext.h" |
#include "core/page/Page.h" |
#include "wtf/Assertions.h" |
@@ -77,7 +78,7 @@ void NetworkStateNotifier::setWebConnectionTypeImpl(blink::WebConnectionType typ |
for (ObserverListMap::iterator it = m_observers.begin(); it != m_observers.end(); ++it) { |
ExecutionContext* context = it->key; |
- context->postTask(bind(&NetworkStateNotifier::notifyObserversOnContext, this, context, type)); |
+ context->postTask(createCrossThreadTask(&NetworkStateNotifier::notifyObserversOnContext, this, AllowCrossThreadAccess(context), type)); |
} |
} |