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

Unified Diff: third_party/WebKit/Source/web/InspectorEmulationAgent.cpp

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: +DISALLOW_COPY_AND_ASSIGN for win build fix Created 3 years, 11 months 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: third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
diff --git a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
index 24f2559637a239ebb4caa19b377dd37d0702fc96..f661594577ef716c1108aaf48cbcc8102f487974 100644
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
@@ -150,7 +150,7 @@ Response InspectorEmulationAgent::setVirtualTimePolicy(const String& policy,
m_webLocalFrameImpl->view()->scheduler()->enableVirtualTime();
if (budget.isJust()) {
- WebTaskRunner* taskRunner =
+ RefPtr<WebTaskRunner> taskRunner =
Platform::current()->currentThread()->getWebTaskRunner();
long long delayMillis = static_cast<long long>(budget.fromJust());
m_virtualTimeBudgetExpiredTaskHandle =

Powered by Google App Engine
This is Rietveld 408576698