| Index: third_party/WebKit/Source/web/StorageClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/StorageClientImpl.cpp b/third_party/WebKit/Source/web/StorageClientImpl.cpp
|
| index 9db053e3f8df63a7d382fcd5380604d4430bace2..6c651c2b62101eaa01c44299522f3e86483246ac 100644
|
| --- a/third_party/WebKit/Source/web/StorageClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/StorageClientImpl.cpp
|
| @@ -31,6 +31,8 @@
|
| #include "public/web/WebViewClient.h"
|
| #include "web/WebLocalFrameImpl.h"
|
| #include "web/WebViewImpl.h"
|
| +#include "wtf/PtrUtil.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -39,11 +41,11 @@ StorageClientImpl::StorageClientImpl(WebViewImpl* webView)
|
| {
|
| }
|
|
|
| -PassOwnPtr<StorageNamespace> StorageClientImpl::createSessionStorageNamespace()
|
| +std::unique_ptr<StorageNamespace> StorageClientImpl::createSessionStorageNamespace()
|
| {
|
| if (!m_webView->client())
|
| return nullptr;
|
| - return adoptPtr(new StorageNamespace(adoptPtr(m_webView->client()->createSessionStorageNamespace())));
|
| + return wrapUnique(new StorageNamespace(wrapUnique(m_webView->client()->createSessionStorageNamespace())));
|
| }
|
|
|
| bool StorageClientImpl::canAccessStorage(LocalFrame* frame, StorageType type) const
|
|
|