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

Unified Diff: third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/platform/testing/weburl_loader_mock_factory_impl.cc
diff --git a/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc b/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc
index d71b097b97a14fb49ffefd02b30764f8c69a4296..bfe21a58466f21157e1ca19ca6d727440deb3eb7 100644
--- a/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc
+++ b/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc
@@ -15,13 +15,13 @@
#include "public/platform/WebURLError.h"
#include "public/platform/WebURLRequest.h"
#include "public/platform/WebURLResponse.h"
+#include "wtf/PtrUtil.h"
namespace blink {
-WebPassOwnPtr<WebURLLoaderMockFactory> WebURLLoaderMockFactory::create()
+std::unique_ptr<WebURLLoaderMockFactory> WebURLLoaderMockFactory::create()
{
- return adoptWebPtr(static_cast<WebURLLoaderMockFactory*>(
- new WebURLLoaderMockFactoryImpl));
+ return wrapUnique(new WebURLLoaderMockFactoryImpl);
}
WebURLLoaderMockFactoryImpl::WebURLLoaderMockFactoryImpl() {}

Powered by Google App Engine
This is Rietveld 408576698