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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchResponseData.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/modules/fetch/FetchResponseData.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp b/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp
index 17bfc8c52eebe9ec829dd8facdfc78d6ae3bea48..9e10c5a881170f3ecf0e51facc82993311968eff 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp
@@ -11,7 +11,6 @@
#include "modules/fetch/DataConsumerHandleUtil.h"
#include "modules/fetch/FetchHeaderList.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
-#include "wtf/PtrUtil.h"
namespace blink {
@@ -190,7 +189,7 @@ FetchResponseData* FetchResponseData::clone(ScriptState* scriptState)
FetchResponseData* newResponse = create();
newResponse->m_type = m_type;
if (m_terminationReason) {
- newResponse->m_terminationReason = wrapUnique(new TerminationReason);
+ newResponse->m_terminationReason = adoptPtr(new TerminationReason);
*newResponse->m_terminationReason = *m_terminationReason;
}
newResponse->m_url = m_url;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchResponseData.h ('k') | third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698