Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: third_party/WebKit/Source/web/StorageClientImpl.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6c651c2b62101eaa01c44299522f3e86483246ac..9db053e3f8df63a7d382fcd5380604d4430bace2 100644
--- a/third_party/WebKit/Source/web/StorageClientImpl.cpp
+++ b/third_party/WebKit/Source/web/StorageClientImpl.cpp
@@ -31,8 +31,6 @@
#include "public/web/WebViewClient.h"
#include "web/WebLocalFrameImpl.h"
#include "web/WebViewImpl.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -41,11 +39,11 @@ StorageClientImpl::StorageClientImpl(WebViewImpl* webView)
{
}
-std::unique_ptr<StorageNamespace> StorageClientImpl::createSessionStorageNamespace()
+PassOwnPtr<StorageNamespace> StorageClientImpl::createSessionStorageNamespace()
{
if (!m_webView->client())
return nullptr;
- return wrapUnique(new StorageNamespace(wrapUnique(m_webView->client()->createSessionStorageNamespace())));
+ return adoptPtr(new StorageNamespace(adoptPtr(m_webView->client()->createSessionStorageNamespace())));
}
bool StorageClientImpl::canAccessStorage(LocalFrame* frame, StorageType type) const
« no previous file with comments | « third_party/WebKit/Source/web/StorageClientImpl.h ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698