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

Issue 2487323002: Fix crash upon opening print preview with invalid printer. (Closed)

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

Description

Fix crash upon opening print preview with invalid printer. If a printer doesn't have a PPD, print preview is currently crashing due to a segfault. Check for the nullptr. BUG=663679 TEST=Select a printer without a PPD in Linux. Verify print preview doesn't crash Committed: https://crrev.com/239bf3134b00d347e9a9f39354c1646ced1f68fc Cr-Commit-Position: refs/heads/master@{#431051}

Patch Set 1 #

Patch Set 2 : fallback #

Total comments: 2

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M chrome/browser/ui/webui/print_preview/printer_capabilities.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
skau
I overlooked a null check. I've verified that it should work now. Problem occurs when ...
4 years, 1 month ago (2016-11-09 21:24:40 UTC) #3
skau
thestig@ PTAL
4 years, 1 month ago (2016-11-09 21:24:56 UTC) #5
Lei Zhang
lgtm https://codereview.chromium.org/2487323002/diff/20001/chrome/browser/ui/webui/print_preview/printer_capabilities.cc File chrome/browser/ui/webui/print_preview/printer_capabilities.cc (right): https://codereview.chromium.org/2487323002/diff/20001/chrome/browser/ui/webui/print_preview/printer_capabilities.cc#newcode29 chrome/browser/ui/webui/print_preview/printer_capabilities.cc:29: // |nullptr| if a dictionary could not be ...
4 years, 1 month ago (2016-11-09 21:29:17 UTC) #6
skau
Thanks. https://codereview.chromium.org/2487323002/diff/20001/chrome/browser/ui/webui/print_preview/printer_capabilities.cc File chrome/browser/ui/webui/print_preview/printer_capabilities.cc (right): https://codereview.chromium.org/2487323002/diff/20001/chrome/browser/ui/webui/print_preview/printer_capabilities.cc#newcode29 chrome/browser/ui/webui/print_preview/printer_capabilities.cc:29: // |nullptr| if a dictionary could not be ...
4 years, 1 month ago (2016-11-09 21:30:31 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/2487323002/40001
4 years, 1 month ago (2016-11-09 21:30:48 UTC) #10
Lei Zhang
Oh, bug # is wrong. I will edit.
4 years, 1 month ago (2016-11-09 21:44:03 UTC) #11
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/2487323002/40001
4 years, 1 month ago (2016-11-09 21:45:49 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-09 22:19:43 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 22:42:13 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/239bf3134b00d347e9a9f39354c1646ced1f68fc
Cr-Commit-Position: refs/heads/master@{#431051}

Powered by Google App Engine
This is Rietveld 408576698