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

Unified Diff: third_party/WebKit/Source/wtf/Assertions.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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/Source/wtf/DataLog.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Assertions.cpp
diff --git a/third_party/WebKit/Source/wtf/Assertions.cpp b/third_party/WebKit/Source/wtf/Assertions.cpp
index ed52388228dacc4f9c01d5133c3e2d68cac66180..ec94840d1a0910ab26b874a3545a127926e7a71c 100644
--- a/third_party/WebKit/Source/wtf/Assertions.cpp
+++ b/third_party/WebKit/Source/wtf/Assertions.cpp
@@ -34,10 +34,10 @@
#include "wtf/Assertions.h"
#include "wtf/Compiler.h"
-#include "wtf/PtrUtil.h"
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/ThreadSpecific.h"
#include "wtf/Threading.h"
-#include <memory>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -115,7 +115,7 @@ static void vprintf_stderr_with_trailing_newline(const char* format, va_list arg
return;
}
- std::unique_ptr<char[]> formatWithNewline = wrapArrayUnique(new char[formatLength + 2]);
+ OwnPtr<char[]> formatWithNewline = adoptArrayPtr(new char[formatLength + 2]);
memcpy(formatWithNewline.get(), format, formatLength);
formatWithNewline[formatLength] = '\n';
formatWithNewline[formatLength + 1] = 0;
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/Source/wtf/DataLog.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698