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

Issue 2554563002: [pdf] Reset defer_page_unload to original value. (Closed)

Created:
4 years ago by dsinclair
Modified:
4 years ago
Reviewers:
Lei Zhang, Tom Sepez
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[pdf] Reset defer_page_unload to original value. In the PdfiumEngine::GetMostVisiblePage() we force the system to defer page unloading because it can be called during a callback. That callback can be triggered from a ::HandleEvent() call. Currently we will always reset the defer_page_unload_ to false in ::GetMostVisiblePage(). This Cl updates the code to reset defer_page_unload_ to the value it contained prior to the call to ::GetMostVisiblePage(). Committed: https://crrev.com/8e36ea8099dbbbc4ab3d87e598ba03cebc55a6b0 Cr-Commit-Position: refs/heads/master@{#436590}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M pdf/pdfium/pdfium_engine.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
dsinclair
PTAL.
4 years ago (2016-12-05 16:41:05 UTC) #4
Tom Sepez
https://codereview.chromium.org/2554563002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2554563002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode2473 pdf/pdfium/pdfium_engine.cc:2473: bool old_defer_page_unload = defer_page_unload_; base::AutoReset maybe?
4 years ago (2016-12-05 17:54:05 UTC) #7
dsinclair
https://codereview.chromium.org/2554563002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2554563002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode2473 pdf/pdfium/pdfium_engine.cc:2473: bool old_defer_page_unload = defer_page_unload_; On 2016/12/05 17:54:05, Tom Sepez ...
4 years ago (2016-12-05 20:07:48 UTC) #8
Tom Sepez
lgtm
4 years ago (2016-12-05 21:05:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2554563002/20001
4 years ago (2016-12-06 13:49:36 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-06 14:33:47 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-06 14:35:31 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8e36ea8099dbbbc4ab3d87e598ba03cebc55a6b0
Cr-Commit-Position: refs/heads/master@{#436590}

Powered by Google App Engine
This is Rietveld 408576698