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

Issue 7365003: Print Preview: Make preview generation event driven to eliminate synchronous messages. (Closed)

Created:
9 years, 5 months ago by Lei Zhang
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Print Preview: Make preview generation event driven to eliminate synchronous messages. BUG=89069 TEST=Print preview still works. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92828

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : fix broken test, add more DCHECKs #

Total comments: 70

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : Speculative fix for DidFinishPrint DCHECK #

Total comments: 6

Patch Set 6 : address comments #

Patch Set 7 : clang fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -491 lines) Patch
M chrome/browser/printing/print_preview_message_handler.h View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 5 chunks +21 lines, -29 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.h View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.cc View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 6 3 chunks +12 lines, -11 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 2 3 4 5 6 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/renderer/mock_render_thread.cc View 1 2 3 4 5 6 5 chunks +18 lines, -12 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 6 9 chunks +109 lines, -43 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 20 chunks +331 lines, -142 lines 0 comments Download
M chrome/renderer/print_web_view_helper_browsertest.cc View 1 2 3 4 5 6 2 chunks +9 lines, -27 lines 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 1 2 3 4 5 6 5 chunks +16 lines, -59 lines 0 comments Download
M chrome/renderer/print_web_view_helper_mac.mm View 1 2 3 4 5 6 1 chunk +8 lines, -72 lines 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 2 3 4 5 6 1 chunk +14 lines, -84 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Lei Zhang
9 years, 5 months ago (2011-07-14 17:57:55 UTC) #1
kmadhusu
http://codereview.chromium.org/7365003/diff/9001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7365003/diff/9001/chrome/browser/printing/print_preview_message_handler.cc#newcode82 chrome/browser/printing/print_preview_message_handler.cc:82: if (!print_preview_tab) { Can you make this if condition ...
9 years, 5 months ago (2011-07-15 01:22:46 UTC) #2
Lei Zhang
http://codereview.chromium.org/7365003/diff/9001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7365003/diff/9001/chrome/browser/printing/print_preview_message_handler.cc#newcode82 chrome/browser/printing/print_preview_message_handler.cc:82: if (!print_preview_tab) { On 2011/07/15 01:22:46, kmadhusu wrote: > ...
9 years, 5 months ago (2011-07-15 01:48:02 UTC) #3
kmadhusu
(repeating our conversation): When I tested this CL, I saw two different initiator tab crashes. ...
9 years, 5 months ago (2011-07-15 19:25:46 UTC) #4
Lei Zhang
I don't see how the scoped_ptr error would have happened. We only reset / dereference ...
9 years, 5 months ago (2011-07-15 20:23:35 UTC) #5
kmadhusu
LGTM I don't have a specific test case to repro the crashes. I will try ...
9 years, 5 months ago (2011-07-15 20:47:05 UTC) #6
commit-bot: I haz the power
9 years, 5 months ago (2011-07-18 02:47:29 UTC) #7
Change committed as 92828

Powered by Google App Engine
This is Rietveld 408576698