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

Unified Diff: third_party/WebKit/Source/wtf/Assertions.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. 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/wtf/Assertions.cpp
diff --git a/third_party/WebKit/Source/wtf/Assertions.cpp b/third_party/WebKit/Source/wtf/Assertions.cpp
index ec94840d1a0910ab26b874a3545a127926e7a71c..ed52388228dacc4f9c01d5133c3e2d68cac66180 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/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.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;
}
- OwnPtr<char[]> formatWithNewline = adoptArrayPtr(new char[formatLength + 2]);
+ std::unique_ptr<char[]> formatWithNewline = wrapArrayUnique(new char[formatLength + 2]);
memcpy(formatWithNewline.get(), format, formatLength);
formatWithNewline[formatLength] = '\n';
formatWithNewline[formatLength + 1] = 0;

Powered by Google App Engine
This is Rietveld 408576698