Index: Source/core/workers/Worker.cpp |
diff --git a/Source/core/workers/Worker.cpp b/Source/core/workers/Worker.cpp |
index 79b3190abe9cbd7792f2c398afe6d61e88a1199e..dad998af419a347bbab5c7d5ca7009d79e414e36 100644 |
--- a/Source/core/workers/Worker.cpp |
+++ b/Source/core/workers/Worker.cpp |
@@ -19,7 +19,7 @@ Worker::Worker(ExecutionContext* context) |
{ |
} |
-PassRefPtrWillBeRawPtr<Worker> Worker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState) |
+Worker* Worker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState) |
{ |
ASSERT(isMainThread()); |
Document* document = toDocument(context); |
@@ -28,9 +28,9 @@ PassRefPtrWillBeRawPtr<Worker> Worker::create(ExecutionContext* context, const S |
exceptionState.throwDOMException(InvalidAccessError, "The context provided is invalid."); |
return nullptr; |
} |
- RefPtrWillBeRawPtr<Worker> worker = adoptRefWillBeNoop(new Worker(context)); |
+ Worker* worker = new Worker(context); |
if (worker->initialize(context, url, exceptionState)) |
- return worker.release(); |
+ return worker; |
return nullptr; |
} |