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

Issue 10544084: Fix crash when displaying system print dialog on Linux. (Closed)

Created:
8 years, 6 months ago by Albert Bodenhamer
Modified:
8 years, 6 months ago
Reviewers:
Lei Zhang, jam, Scott Byer
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix crash when displaying system print dialog on Linux. Uses a render view ID to find a correct window handle to use as a parent for the system dialog. Uses a series of PostTask calls to cause the various steps of getting print settings to occur on the correct threads. BUG=130095 TEST=Verify 130095 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141726

Patch Set 1 #

Patch Set 2 : Remove unneeded TODO #

Patch Set 3 : Remove obsolete comment #

Patch Set 4 : Fix compile issue with unit tests. #

Total comments: 5

Patch Set 5 : Review feedback #

Patch Set 6 : Review feedback #

Patch Set 7 : Remove extra render_view_id references #

Total comments: 9

Patch Set 8 : Review feedback #

Total comments: 8

Patch Set 9 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -40 lines) Patch
M chrome/browser/printing/printing_message_filter.h View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 2 3 4 5 6 7 8 4 chunks +72 lines, -25 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/renderer/render_view.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Albert Bodenhamer
Tested on Linux and Win. I'm testing on Mac now.
8 years, 6 months ago (2012-06-08 23:27:41 UTC) #1
Albert Bodenhamer
A herd of hairy yaks stands between me and a working Mac build. Can one ...
8 years, 6 months ago (2012-06-11 20:48:06 UTC) #2
Lei Zhang
I'll do a Mac build and see what happens. http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc#newcode282 chrome/browser/printing/printing_message_filter.cc:282: ...
8 years, 6 months ago (2012-06-11 21:23:06 UTC) #3
Albert Bodenhamer
http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc#newcode282 chrome/browser/printing/printing_message_filter.cc:282: params.render_view_id, settings_params, On 2012/06/11 21:23:06, Lei Zhang wrote: > ...
8 years, 6 months ago (2012-06-11 21:54:08 UTC) #4
Lei Zhang
http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc#newcode282 chrome/browser/printing/printing_message_filter.cc:282: params.render_view_id, settings_params, On 2012/06/11 21:54:08, Albert Bodenhamer wrote: > ...
8 years, 6 months ago (2012-06-11 22:17:10 UTC) #5
Albert Bodenhamer
On 2012/06/11 22:17:10, Lei Zhang wrote: > http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc > File chrome/browser/printing/printing_message_filter.cc (right): > > http://codereview.chromium.org/10544084/diff/12001/chrome/browser/printing/printing_message_filter.cc#newcode282 ...
8 years, 6 months ago (2012-06-11 22:54:57 UTC) #6
Lei Zhang
https://chromiumcodereview.appspot.com/10544084/diff/1009/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): https://chromiumcodereview.appspot.com/10544084/diff/1009/chrome/browser/printing/printing_message_filter.cc#newcode165 chrome/browser/printing/printing_message_filter.cc:165: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); If you do this, then |g_printing_file_descriptor_map| needs locking. ...
8 years, 6 months ago (2012-06-11 23:32:28 UTC) #7
Albert Bodenhamer
http://codereview.chromium.org/10544084/diff/1009/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/10544084/diff/1009/chrome/browser/printing/printing_message_filter.cc#newcode165 chrome/browser/printing/printing_message_filter.cc:165: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); Argh! Yeah. I should have caught that. CrOS ...
8 years, 6 months ago (2012-06-11 23:54:58 UTC) #8
Albert Bodenhamer
Adding John for the content changes. https://chromiumcodereview.appspot.com/10544084/diff/1009/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): https://chromiumcodereview.appspot.com/10544084/diff/1009/chrome/browser/printing/printing_message_filter.cc#newcode165 chrome/browser/printing/printing_message_filter.cc:165: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); On 2012/06/11 ...
8 years, 6 months ago (2012-06-12 01:19:02 UTC) #9
jam
content lgtm
8 years, 6 months ago (2012-06-12 01:46:57 UTC) #10
Lei Zhang
LGTM, with a few nits below. Works on Mac too. https://chromiumcodereview.appspot.com/10544084/diff/11/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): https://chromiumcodereview.appspot.com/10544084/diff/11/chrome/browser/printing/printing_message_filter.cc#newcode162 ...
8 years, 6 months ago (2012-06-12 01:47:03 UTC) #11
Albert Bodenhamer
I finally got my mac build working and it tests fine for me as well. ...
8 years, 6 months ago (2012-06-12 18:50:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abodenha@chromium.org/10544084/11007
8 years, 6 months ago (2012-06-12 18:51:13 UTC) #13
commit-bot: I haz the power
8 years, 6 months ago (2012-06-12 20:28:12 UTC) #14
Change committed as 141726

Powered by Google App Engine
This is Rietveld 408576698