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

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

Issue 2831033002: Use unique_ptr for Platform::CreateURLLoader (Closed)
Patch Set: Created 3 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.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 d60e983aa4ff8bb447f3b63afe1dca3ca064f9a4..02a1d7c8d1d62b1162fd6a79464625d2f31a1ca7 100644
--- a/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
+++ b/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
@@ -25,9 +25,9 @@ void AssertFallbackLoaderAvailability(const WebURL& url,
} // namespace
WebURLLoaderMock::WebURLLoaderMock(WebURLLoaderMockFactoryImpl* factory,
- WebURLLoader* default_loader)
+ std::unique_ptr<WebURLLoader> default_loader)
: factory_(factory),
- default_loader_(WTF::WrapUnique(default_loader)),
+ default_loader_(std::move(default_loader)),
weak_factory_(this) {}
WebURLLoaderMock::~WebURLLoaderMock() {

Powered by Google App Engine
This is Rietveld 408576698