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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp

Issue 2148363004: Use std::unique_ptr<> for WebTaskRunner::clone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/core/workers/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index b28599cf51da7eccb63ba592cb13fe9d573fd0bb..5a61b752a8f78409d2159e0dc5eec0a9dd55d0b9 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -63,7 +63,6 @@
#include "wtf/RefPtr.h"
namespace blink {
-
namespace {
void removeURLFromMemoryCacheInternal(const KURL& url)
@@ -297,7 +296,7 @@ WorkerGlobalScope::WorkerGlobalScope(const KURL& url, const String& userAgent, W
, m_closing(false)
, m_eventQueue(WorkerEventQueue::create(this))
, m_workerClients(workerClients)
- , m_timers(Platform::current()->currentThread()->scheduler()->timerTaskRunner()->adoptClone())
+ , m_timers(Platform::current()->currentThread()->scheduler()->timerTaskRunner()->clone())
, m_timeOrigin(timeOrigin)
, m_consoleMessageStorage(new ConsoleMessageStorage())
{
« no previous file with comments | « third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp ('k') | third_party/WebKit/Source/platform/TimerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698