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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/FetchHeaderList.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
index cb329ed1a2739e00fc05351f9139df15411b79a7..aa54baf14708ef03ec9caab46e6a987e2eab3fb8 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
@@ -6,7 +6,7 @@
#include "core/fetch/FetchUtils.h"
#include "platform/network/HTTPParsers.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -36,7 +36,7 @@ void FetchHeaderList::append(const String& name, const String& value)
// "To append a name/value (|name|/|value|) pair to a header list (|list|),
// append a new header whose name is |name|, byte lowercased, and value is
// |value|, to |list|."
- m_headerList.append(adoptPtr(new Header(name.lower(), value)));
+ m_headerList.append(wrapUnique(new Header(name.lower(), value)));
}
void FetchHeaderList::set(const String& name, const String& value)
@@ -61,7 +61,7 @@ void FetchHeaderList::set(const String& name, const String& value)
return;
}
}
- m_headerList.append(adoptPtr(new Header(lowercasedName, value)));
+ m_headerList.append(wrapUnique(new Header(lowercasedName, value)));
}
String FetchHeaderList::extractMIMEType() const
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchHeaderList.h ('k') | third_party/WebKit/Source/modules/fetch/FetchManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698