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

Issue 2006793003: PDF: Always call FPDFAvail_IsDocAvail() when loading. (Closed)

Created:
4 years, 7 months ago by Lei Zhang
Modified:
4 years, 6 months ago
Reviewers:
Wei Li
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF: Always call FPDFAvail_IsDocAvail() when loading. BUG=613704 Committed: https://crrev.com/0968faa3214a03bc763d15fd66943ff3bcaf75d5 Cr-Commit-Position: refs/heads/master@{#400286}

Patch Set 1 #

Patch Set 2 : nit #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : better fix? #

Total comments: 6

Patch Set 5 : rebase #

Patch Set 6 : rebase, no dcheck #

Patch Set 7 : call FPDFAvail_IsDocAvail one more time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -12 lines) Patch
M pdf/pdfium/pdfium_engine.h View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 5 6 4 chunks +17 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Lei Zhang
Internally in PDFium, if FPDFAvail_IsDocAvail() does not get called, then CPDF_DataAvail::CheckDocStatus() does not get called. ...
4 years, 7 months ago (2016-05-23 23:24:52 UTC) #2
Wei Li
https://codereview.chromium.org/2006793003/diff/20001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (left): https://codereview.chromium.org/2006793003/diff/20001/pdf/pdfium/pdfium_engine.cc#oldcode2395 pdf/pdfium/pdfium_engine.cc:2395: !FPDFAvail_IsDocAvail(fpdf_availability_, &download_hints_)) { Should these conditions be ORed instead?
4 years, 7 months ago (2016-05-24 00:21:28 UTC) #3
Lei Zhang
I scrapped the approach in patch set 2 and I'm trying something different in patch ...
4 years, 7 months ago (2016-05-25 17:16:36 UTC) #4
Wei Li
https://codereview.chromium.org/2006793003/diff/60001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2006793003/diff/60001/pdf/pdfium/pdfium_engine.cc#newcode1052 pdf/pdfium/pdfium_engine.cc:1052: DCHECK(fpdf_availability_); On 2016/05/25 17:16:36, Lei Zhang wrote: > I'm ...
4 years, 7 months ago (2016-05-25 22:37:39 UTC) #5
Lei Zhang
This one fell off the radar. https://codereview.chromium.org/2006793003/diff/60001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2006793003/diff/60001/pdf/pdfium/pdfium_engine.cc#newcode2442 pdf/pdfium/pdfium_engine.cc:2442: int avail = ...
4 years, 6 months ago (2016-06-14 17:53:56 UTC) #6
Wei Li
https://codereview.chromium.org/2006793003/diff/60001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2006793003/diff/60001/pdf/pdfium/pdfium_engine.cc#newcode2442 pdf/pdfium/pdfium_engine.cc:2442: int avail = FPDFAvail_IsDocAvail(fpdf_availability_, &download_hints_); On 2016/06/14 17:53:56, Lei ...
4 years, 6 months ago (2016-06-14 23:33:43 UTC) #7
Lei Zhang
On 2016/06/14 23:33:43, Wei Li wrote: > I think the fix is in right direction. ...
4 years, 6 months ago (2016-06-15 01:11:16 UTC) #8
Lei Zhang
PTAL at patch set 7.
4 years, 6 months ago (2016-06-16 20:13:56 UTC) #9
Wei Li
lgtm
4 years, 6 months ago (2016-06-16 21:32:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2006793003/120001
4 years, 6 months ago (2016-06-16 21:39:37 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-16 23:06:56 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 23:10:18 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0968faa3214a03bc763d15fd66943ff3bcaf75d5
Cr-Commit-Position: refs/heads/master@{#400286}

Powered by Google App Engine
This is Rietveld 408576698