diff options
author | tsepez <tsepez@chromium.org> | 2016-06-01 13:35:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-01 13:35:28 -0700 |
commit | 8abd7a2bbfef51ca6dc8a3462c067e5d2c46200e (patch) | |
tree | be8c84b695efe5e653d881a6f3194df981e76edb /fpdfsdk/javascript/cjs_context.cpp | |
parent | f6be145f54bf44810974e43e9554c756c9730bb6 (diff) | |
download | pdfium-8abd7a2bbfef51ca6dc8a3462c067e5d2c46200e.tar.xz |
Remove use of v8:Lockers
The entire code base is single-threaded, hence the lockers
ought not be required.
Review-Url: https://codereview.chromium.org/2026933002
Diffstat (limited to 'fpdfsdk/javascript/cjs_context.cpp')
-rw-r--r-- | fpdfsdk/javascript/cjs_context.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/cjs_context.cpp b/fpdfsdk/javascript/cjs_context.cpp index 66a3e0783d..c8630ab32d 100644 --- a/fpdfsdk/javascript/cjs_context.cpp +++ b/fpdfsdk/javascript/cjs_context.cpp @@ -30,9 +30,6 @@ CPDFDoc_Environment* CJS_Context::GetReaderApp() { FX_BOOL CJS_Context::RunScript(const CFX_WideString& script, CFX_WideString* info) { v8::Isolate::Scope isolate_scope(m_pRuntime->GetIsolate()); -#ifdef PDF_ENABLE_XFA - v8::Locker locker(m_pRuntime->GetIsolate()); -#endif // PDF_ENABLE_XFA v8::HandleScope handle_scope(m_pRuntime->GetIsolate()); v8::Local<v8::Context> context = m_pRuntime->NewJSContext(); v8::Context::Scope context_scope(context); |