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

Unified Diff: testing/js_embedder_test.cpp

Issue 2386273004: Add ptr_util.h from base until std::make_unique<> available (Closed)
Patch Set: 2016 Created 4 years, 2 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 | « fpdfsdk/pdfwindow/PWL_Wnd.cpp ('k') | third_party/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/js_embedder_test.cpp
diff --git a/testing/js_embedder_test.cpp b/testing/js_embedder_test.cpp
index a8b0d5bfcf9a417ed52045051d4fb1a894e7d746..064a96104917496a6eeb840d8eeb8c7bdd70ae5a 100644
--- a/testing/js_embedder_test.cpp
+++ b/testing/js_embedder_test.cpp
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "testing/js_embedder_test.h"
+#include "third_party/base/ptr_util.h"
JSEmbedderTest::JSEmbedderTest()
: m_pArrayBufferAllocator(new FXJS_ArrayBufferAllocator),
@@ -21,7 +22,7 @@ void JSEmbedderTest::SetUp() {
v8::Isolate::Scope isolate_scope(m_pIsolate);
v8::HandleScope handle_scope(m_pIsolate);
FXJS_PerIsolateData::SetUp(m_pIsolate);
- m_Engine = WrapUnique(new CFXJS_Engine(m_pIsolate));
+ m_Engine = pdfium::MakeUnique<CFXJS_Engine>(m_pIsolate);
m_Engine->InitializeEngine();
}
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_Wnd.cpp ('k') | third_party/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698