| Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| index 51b411cf23a1dfaa26445fcf5d640a069576b353..5060946d4ef6b4d8cca8677f879a6ad7bdc0be25 100644
|
| --- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -72,8 +72,6 @@
|
| #include "web/WebLocalFrameImpl.h"
|
| #include "web/WorkerContentSettingsClient.h"
|
| #include "wtf/Functional.h"
|
| -#include "wtf/PtrUtil.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -172,7 +170,7 @@ void WebSharedWorkerImpl::didFinishDocumentLoad(WebLocalFrame* frame)
|
| {
|
| DCHECK(!m_loadingDocument);
|
| DCHECK(!m_mainScriptLoader);
|
| - m_networkProvider = wrapUnique(m_client->createServiceWorkerNetworkProvider(frame->dataSource()));
|
| + m_networkProvider = adoptPtr(m_client->createServiceWorkerNetworkProvider(frame->dataSource()));
|
| m_mainScriptLoader = WorkerScriptLoader::create();
|
| m_mainScriptLoader->setRequestContext(WebURLRequest::RequestContextSharedWorker);
|
| m_loadingDocument = toWebLocalFrameImpl(frame)->frame()->document();
|
| @@ -219,7 +217,7 @@ WebDevToolsAgentClient::WebKitClientMessageLoop* WebSharedWorkerImpl::createClie
|
|
|
| // WorkerReportingProxy --------------------------------------------------------
|
|
|
| -void WebSharedWorkerImpl::reportException(const String& errorMessage, std::unique_ptr<SourceLocation>)
|
| +void WebSharedWorkerImpl::reportException(const String& errorMessage, PassOwnPtr<SourceLocation>)
|
| {
|
| // Not suppported in SharedWorker.
|
| }
|
| @@ -333,11 +331,11 @@ void WebSharedWorkerImpl::onScriptLoaderFinished()
|
| WorkerClients* workerClients = WorkerClients::create();
|
| provideLocalFileSystemToWorker(workerClients, LocalFileSystemClient::create());
|
| WebSecurityOrigin webSecurityOrigin(m_loadingDocument->getSecurityOrigin());
|
| - provideContentSettingsClientToWorker(workerClients, wrapUnique(m_client->createWorkerContentSettingsClientProxy(webSecurityOrigin)));
|
| + provideContentSettingsClientToWorker(workerClients, adoptPtr(m_client->createWorkerContentSettingsClientProxy(webSecurityOrigin)));
|
| provideIndexedDBClientToWorker(workerClients, IndexedDBClientImpl::create());
|
| ContentSecurityPolicy* contentSecurityPolicy = m_mainScriptLoader->releaseContentSecurityPolicy();
|
| WorkerThreadStartMode startMode = m_workerInspectorProxy->workerStartMode(document);
|
| - std::unique_ptr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create(
|
| + OwnPtr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create(
|
| m_url,
|
| m_loadingDocument->userAgent(),
|
| m_mainScriptLoader->script(),
|
|
|