summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_parser.cpp
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2017-10-03 18:16:25 +0300
committerChromium commit bot <commit-bot@chromium.org>2017-10-03 16:22:16 +0000
commite4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c (patch)
treef7727344c28d4046ab14066758bccb905708f8bb /core/fpdfapi/parser/cpdf_parser.cpp
parent6caef3028fd5ce9751fb246b084ad0e139aa9c77 (diff)
downloadpdfium-e4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c.tar.xz
Remove the parser from the CPDF_SecurityHandler .
Change-Id: I9fb651285c158e0f61d19e1aaf0d8bcfd302a22f Reviewed-on: https://pdfium-review.googlesource.com/15290 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_parser.cpp')
-rw-r--r--core/fpdfapi/parser/cpdf_parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_parser.cpp b/core/fpdfapi/parser/cpdf_parser.cpp
index 1965146728..17f49c6324 100644
--- a/core/fpdfapi/parser/cpdf_parser.cpp
+++ b/core/fpdfapi/parser/cpdf_parser.cpp
@@ -311,7 +311,8 @@ CPDF_Parser::Error CPDF_Parser::SetEncryptHandler() {
std::unique_ptr<CPDF_SecurityHandler> pSecurityHandler =
pdfium::MakeUnique<CPDF_SecurityHandler>();
- if (!pSecurityHandler->OnInit(this, m_pEncryptDict.Get()))
+ if (!pSecurityHandler->OnInit(m_pEncryptDict.Get(), GetIDArray(),
+ m_Password))
return PASSWORD_ERROR;
m_pSecurityHandler = std::move(pSecurityHandler);