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

Issue 2174963002: Fix a crash in pdf::PepperPDFHost::OnHostMsgHasUnsupportedFeature(). (Closed)

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

Description

Fix a crash in pdf::PepperPDFHost::OnHostMsgHasUnsupportedFeature(). BUG=627814 Committed: https://crrev.com/d72a1999af854cec09a4b20a69ff5795b8c84c9f Cr-Commit-Position: refs/heads/master@{#407323}

Patch Set 1 #

Total comments: 2

Patch Set 2 : more checks, lint #

Total comments: 5

Patch Set 3 : helper function, more nits #

Patch Set 4 : niiiiiiiits! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -32 lines) Patch
M components/pdf/renderer/pepper_pdf_host.h View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M components/pdf/renderer/pepper_pdf_host.cc View 1 2 6 chunks +30 lines, -27 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
Lei Zhang
https://codereview.chromium.org/2174963002/diff/1/components/pdf/renderer/pepper_pdf_host.cc File components/pdf/renderer/pepper_pdf_host.cc (left): https://codereview.chromium.org/2174963002/diff/1/components/pdf/renderer/pepper_pdf_host.cc#oldcode148 components/pdf/renderer/pepper_pdf_host.cc:148: CHECK(instance->GetContainer()->document().frame()); I found this CHECK() failed, but then I ...
4 years, 5 months ago (2016-07-22 20:35:37 UTC) #4
tommycli
lgtm, but I want to confirm: Sometimes the RenderView may legitimately be null right? So ...
4 years, 5 months ago (2016-07-22 20:42:15 UTC) #5
Lei Zhang
On 2016/07/22 20:42:15, tommycli wrote: > lgtm, but I want to confirm: > > Sometimes ...
4 years, 5 months ago (2016-07-22 21:00:31 UTC) #6
tommycli
On 2016/07/22 20:42:15, tommycli wrote: > lgtm, but I want to confirm: > > Sometimes ...
4 years, 5 months ago (2016-07-22 21:04:20 UTC) #7
Lei Zhang
Patch set 2 has more of the same checks all over the file.
4 years, 5 months ago (2016-07-22 21:41:49 UTC) #12
tommycli
some more suggestions https://codereview.chromium.org/2174963002/diff/20001/components/pdf/renderer/pepper_pdf_host.cc File components/pdf/renderer/pepper_pdf_host.cc (right): https://codereview.chromium.org/2174963002/diff/20001/components/pdf/renderer/pepper_pdf_host.cc#newcode108 components/pdf/renderer/pepper_pdf_host.cc:108: render_view->DidStartLoading(); Since this pattern is now ...
4 years, 5 months ago (2016-07-22 21:47:37 UTC) #13
Lei Zhang
https://codereview.chromium.org/2174963002/diff/20001/components/pdf/renderer/pepper_pdf_host.cc File components/pdf/renderer/pepper_pdf_host.cc (right): https://codereview.chromium.org/2174963002/diff/20001/components/pdf/renderer/pepper_pdf_host.cc#newcode108 components/pdf/renderer/pepper_pdf_host.cc:108: render_view->DidStartLoading(); On 2016/07/22 21:47:37, tommycli wrote: > Since this ...
4 years, 5 months ago (2016-07-22 22:20:21 UTC) #16
tommycli
lgtm sans nit. https://codereview.chromium.org/2174963002/diff/20001/components/pdf/renderer/pepper_pdf_host.h File components/pdf/renderer/pepper_pdf_host.h (right): https://codereview.chromium.org/2174963002/diff/20001/components/pdf/renderer/pepper_pdf_host.h#newcode38 components/pdf/renderer/pepper_pdf_host.h:38: } // ppapi On 2016/07/22 22:20:21, ...
4 years, 5 months ago (2016-07-22 22:29:11 UTC) #17
Lei Zhang
On 2016/07/22 22:29:11, tommycli wrote: > Hey I think it should probably still be // ...
4 years, 5 months ago (2016-07-22 22:50:13 UTC) #18
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/2174963002/60001
4 years, 5 months ago (2016-07-22 22:52:06 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-23 00:58:36 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-23 01:00:23 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d72a1999af854cec09a4b20a69ff5795b8c84c9f
Cr-Commit-Position: refs/heads/master@{#407323}

Powered by Google App Engine
This is Rietveld 408576698