diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-10-03 18:16:25 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-03 16:22:16 +0000 |
commit | e4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c (patch) | |
tree | f7727344c28d4046ab14066758bccb905708f8bb /core/fpdfapi/parser/cpdf_parser.cpp | |
parent | 6caef3028fd5ce9751fb246b084ad0e139aa9c77 (diff) | |
download | pdfium-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.cpp | 3 |
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); |