Index: Source/core/workers/DedicatedWorkerGlobalScope.cpp |
diff --git a/Source/core/workers/DedicatedWorkerGlobalScope.cpp b/Source/core/workers/DedicatedWorkerGlobalScope.cpp |
index 0605c011b1de640fccc1cfde69bc05d5db1ca7aa..4031885c9768b6993ca3800fa53b0e146cfd59ef 100644 |
--- a/Source/core/workers/DedicatedWorkerGlobalScope.cpp |
+++ b/Source/core/workers/DedicatedWorkerGlobalScope.cpp |
@@ -41,9 +41,9 @@ |
namespace WebCore { |
-PassRefPtr<DedicatedWorkerGlobalScope> DedicatedWorkerGlobalScope::create(DedicatedWorkerThread* thread, PassOwnPtr<WorkerThreadStartupData> startupData, double timeOrigin) |
+PassRefPtrWillBeRawPtr<DedicatedWorkerGlobalScope> DedicatedWorkerGlobalScope::create(DedicatedWorkerThread* thread, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData, double timeOrigin) |
{ |
- RefPtr<DedicatedWorkerGlobalScope> context = adoptRef(new DedicatedWorkerGlobalScope(startupData->m_scriptURL, startupData->m_userAgent, thread, timeOrigin, startupData->m_workerClients.release())); |
+ RefPtrWillBeRawPtr<DedicatedWorkerGlobalScope> context = adoptRefCountedWillBeRefCountedGarbageCollected(new DedicatedWorkerGlobalScope(startupData->m_scriptURL, startupData->m_userAgent, thread, timeOrigin, startupData->m_workerClients.release())); |
context->applyContentSecurityPolicyFromString(startupData->m_contentSecurityPolicy, startupData->m_contentSecurityPolicyType); |
return context.release(); |
} |