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

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

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/platform/testing/weburl_loader_mock.cc
diff --git a/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc b/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
index 3984742a34071f3d6e85c662f917f4a8efaf560a..35ff1445b906d42b638fb0cb0714a9b7019ba0ba 100644
--- a/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
+++ b/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
@@ -9,13 +9,14 @@
#include "public/platform/WebData.h"
#include "public/platform/WebURLError.h"
#include "public/platform/WebURLLoaderClient.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
WebURLLoaderMock::WebURLLoaderMock(WebURLLoaderMockFactoryImpl* factory,
WebURLLoader* default_loader)
: factory_(factory),
- default_loader_(wrapUnique(default_loader)),
+ default_loader_(adoptPtr(default_loader)),
weak_factory_(this) {
}
@@ -34,9 +35,9 @@ void WebURLLoaderMock::ServeAsynchronousRequest(
// If no delegate is provided then create an empty one. The default behavior
// will just proxy to the client.
- std::unique_ptr<WebURLLoaderTestDelegate> default_delegate;
+ OwnPtr<WebURLLoaderTestDelegate> default_delegate;
if (!delegate) {
- default_delegate = wrapUnique(new WebURLLoaderTestDelegate());
+ default_delegate = adoptPtr(new WebURLLoaderTestDelegate());
delegate = default_delegate.get();
}

Powered by Google App Engine
This is Rietveld 408576698