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

Issue 7740005: Print preview not showing if default print is invalid. (Closed)

Created:
9 years, 4 months ago by arthurhsu
Modified:
9 years, 3 months ago
CC:
chromium-reviews, arv (Not doing code reviews), darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Print preview not showing if default print is invalid. BUG=94082 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99123

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update per code review #

Total comments: 22

Patch Set 3 : Update per code review #

Total comments: 22

Patch Set 4 : Update per code review #

Patch Set 5 : Merge with lastest trunk #

Patch Set 6 : Retry since last upload failed #

Patch Set 7 : Merge with latest trunk (again) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -15 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +3 lines, -0 lines 1 comment Download
M chrome/browser/printing/print_preview_message_handler.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 2 chunks +22 lines, -0 lines 1 comment Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_data_source.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/mock_printer.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/mock_printer.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 4 chunks +22 lines, -12 lines 0 comments Download
M chrome/renderer/print_web_view_helper_browsertest.cc View 1 2 3 4 2 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
arthurhsu
9 years, 4 months ago (2011-08-25 02:16:13 UTC) #1
kmadhusu
http://codereview.chromium.org/7740005/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7740005/diff/1/chrome/app/generated_resources.grd#newcode5889 chrome/app/generated_resources.grd:5889: <message name="IDS_PRINT_PREVIEW_INVALID_DEFAULT_PRINTER" desc="Message to display when there is no ...
9 years, 3 months ago (2011-08-25 17:33:35 UTC) #2
arthurhsu
On 2011/08/25 17:33:35, kmadhusu wrote: > http://codereview.chromium.org/7740005/diff/1/chrome/app/generated_resources.grd > File chrome/app/generated_resources.grd (right): > > http://codereview.chromium.org/7740005/diff/1/chrome/app/generated_resources.grd#newcode5889 > ...
9 years, 3 months ago (2011-08-26 00:17:36 UTC) #3
kmadhusu
http://codereview.chromium.org/7740005/diff/12/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7740005/diff/12/chrome/app/generated_resources.grd#newcode5890 chrome/app/generated_resources.grd:5890: Selected printer is not available or not installed correctly. ...
9 years, 3 months ago (2011-08-26 18:50:40 UTC) #4
arthurhsu
http://codereview.chromium.org/7740005/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7740005/diff/1/chrome/app/generated_resources.grd#newcode5889 chrome/app/generated_resources.grd:5889: <message name="IDS_PRINT_PREVIEW_INVALID_DEFAULT_PRINTER" desc="Message to display when there is no ...
9 years, 3 months ago (2011-08-29 22:53:16 UTC) #5
kmadhusu
http://codereview.chromium.org/7740005/diff/12001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7740005/diff/12001/chrome/browser/printing/print_preview_message_handler.cc#newcode216 chrome/browser/printing/print_preview_message_handler.cc:216: StopWorker(document_cookie); You need to stop the worker only if ...
9 years, 3 months ago (2011-08-30 02:11:26 UTC) #6
arthurhsu
http://codereview.chromium.org/7740005/diff/12001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7740005/diff/12001/chrome/browser/printing/print_preview_message_handler.cc#newcode216 chrome/browser/printing/print_preview_message_handler.cc:216: StopWorker(document_cookie); On 2011/08/30 02:11:27, kmadhusu wrote: > You need ...
9 years, 3 months ago (2011-08-30 20:43:02 UTC) #7
kmadhusu
LGTM
9 years, 3 months ago (2011-08-31 01:23:47 UTC) #8
commit-bot: I haz the power
Try job failure for 7740005-18001 (retry) on linux for step "compile" (clobber build). It's a ...
9 years, 3 months ago (2011-08-31 01:55:02 UTC) #9
commit-bot: I haz the power
Try job failure for 7740005-22001 (retry) on linux for step "compile" (clobber build). It's a ...
9 years, 3 months ago (2011-08-31 22:03:01 UTC) #10
commit-bot: I haz the power
Change committed as 99123
9 years, 3 months ago (2011-09-01 04:25:24 UTC) #11
Lei Zhang
9 years, 3 months ago (2011-09-01 04:52:08 UTC) #12
http://codereview.chromium.org/7740005/diff/26001/chrome/app/generated_resour...
File chrome/app/generated_resources.grd (right):

http://codereview.chromium.org/7740005/diff/26001/chrome/app/generated_resour...
chrome/app/generated_resources.grd:5961: Selected printer is not available or
not installed correctly.  Check your printer or select another printer.
nit: The selected printer ... or try selecting another printer.

http://codereview.chromium.org/7740005/diff/26001/chrome/browser/printing/pri...
File chrome/browser/printing/print_preview_message_handler.cc (right):

http://codereview.chromium.org/7740005/diff/26001/chrome/browser/printing/pri...
chrome/browser/printing/print_preview_message_handler.cc:212: void
PrintPreviewMessageHandler::OnInvalidPrinterSettings(int document_cookie) {
You can probably merge some of this code with
PrintPreviewMessageHandler::OnPrintPreviewFailed.

Powered by Google App Engine
This is Rietveld 408576698