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

Unified Diff: third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp

Issue 2584253002: Specify TaskType of posted Task explicitly in networking classes (5) (Closed)
Patch Set: Created 4 years 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 | « third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
diff --git a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
index 279327c5007dff984773c43cc62b43ed18fd3786..431e10504fb87cce4a154ee85f86c99d48324926 100644
--- a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
+++ b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
@@ -27,6 +27,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/dom/ExecutionContextTask.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/page/Page.h"
#include "wtf/Assertions.h"
#include "wtf/Functional.h"
@@ -149,7 +150,7 @@ void NetworkStateNotifier::notifyObservers(WebConnectionType type,
for (const auto& entry : m_observers) {
ExecutionContext* context = entry.key;
context->postTask(
- BLINK_FROM_HERE,
+ TaskType::Networking, BLINK_FROM_HERE,
createCrossThreadTask(
&NetworkStateNotifier::notifyObserversOfConnectionChangeOnContext,
crossThreadUnretained(this), type, maxBandwidthMbps));
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698