Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp |
index 0eec3d392c4423334941a562def77b8de3cb9f89..f6f1fed22e18c90efe0e8c84e4b03a2cd806b7f8 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp |
@@ -10,8 +10,6 @@ |
#include "public/platform/Platform.h" |
#include "public/platform/WebTaskRunner.h" |
#include "public/platform/WebTraceLocation.h" |
-#include "wtf/PtrUtil.h" |
-#include <memory> |
namespace blink { |
@@ -74,11 +72,11 @@ void ScriptStreamerThread::taskDone() |
WebThread& ScriptStreamerThread::platformThread() |
{ |
if (!isRunning()) |
- m_thread = wrapUnique(Platform::current()->createThread("ScriptStreamerThread")); |
+ m_thread = adoptPtr(Platform::current()->createThread("ScriptStreamerThread")); |
return *m_thread; |
} |
-void ScriptStreamerThread::runScriptStreamingTask(std::unique_ptr<v8::ScriptCompiler::ScriptStreamingTask> task, ScriptStreamer* streamer) |
+void ScriptStreamerThread::runScriptStreamingTask(PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask> task, ScriptStreamer* streamer) |
{ |
TRACE_EVENT1("v8,devtools.timeline", "v8.parseOnBackground", "data", InspectorParseScriptEvent::data(streamer->scriptResourceIdentifier(), streamer->scriptURLString())); |
// Running the task can and will block: SourceStream::GetSomeData will get |