summaryrefslogtreecommitdiff
path: root/fxjs/cjs_runtimestub.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-02-01 02:15:44 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-01 02:15:44 +0000
commitf5ca90c00198c72488fd337ec8029a7f74b335b8 (patch)
tree8bd701cb4e662069470fc0ece5889823242f252e /fxjs/cjs_runtimestub.cpp
parent33c7ade187724c767fff74913cda63de182b0ce2 (diff)
downloadpdfium-f5ca90c00198c72488fd337ec8029a7f74b335b8.tar.xz
Rename some CJS / IJS names for clarity.
Prior cleanup before making FXJS/FXJSE share one v8 context. Return CJS object rather than isolate in one place. Use unique_ptr in one place. Change-Id: I837ae4880368a6d72e59b38f37e06908e05c34bd Reviewed-on: https://pdfium-review.googlesource.com/24950 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_runtimestub.cpp')
-rw-r--r--fxjs/cjs_runtimestub.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fxjs/cjs_runtimestub.cpp b/fxjs/cjs_runtimestub.cpp
index 919672832d..964b0ff9d6 100644
--- a/fxjs/cjs_runtimestub.cpp
+++ b/fxjs/cjs_runtimestub.cpp
@@ -55,6 +55,7 @@ void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {}
void IJS_Runtime::Destroy() {}
// static
-IJS_Runtime* IJS_Runtime::Create(CPDFSDK_FormFillEnvironment* pFormFillEnv) {
- return new CJS_RuntimeStub(pFormFillEnv);
+std::unique_ptr<IJS_Runtime> IJS_Runtime::Create(
+ CPDFSDK_FormFillEnvironment* pFormFillEnv) {
+ return pdfium::MakeUnique<CJS_RuntimeStub>(pFormFillEnv);
}