Chromium Code Reviews| Index: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| diff --git a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| index 737dfbe9a27d714977cf17dc0e3e9491b4938cd1..17f59bca5bf7fb615d183b49520638f2c1c36375 100644 |
| --- a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| +++ b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| @@ -94,7 +94,7 @@ class EmptyDataHandle final : public WebDataConsumerHandle { |
| }; |
| std::unique_ptr<Reader> obtainReader(Client* client) override { |
| - return WTF::wrapUnique(new EmptyDataReader(client)); |
| + return WTF::makeUnique<EmptyDataReader>(client); |
|
haraken
2016/11/14 01:46:05
Drop redundant WTF::. The same comment for other p
|
| } |
| const char* debugName() const override { return "EmptyDataHandle"; } |
| }; |
| @@ -527,8 +527,7 @@ bool DocumentThreadableLoader::redirectReceived( |
| // TODO(horo): If we support any API which expose the internal body, we will |
| // have to read the body. And also HTTPCache changes will be needed because |
| // it doesn't store the body of redirect responses. |
| - responseReceived(resource, redirectResponse, |
| - wrapUnique(new EmptyDataHandle())); |
| + responseReceived(resource, redirectResponse, makeUnique<EmptyDataHandle>()); |
| if (m_client) { |
| DCHECK(m_actualRequest.isNull()); |