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

Issue 7550063: Print Preview: Handle a crashed initiator tab by showing a message in PP. (Closed)

Created:
9 years, 4 months ago by kmadhusu
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, arv (Not doing code reviews), jam, Paweł Hajdan Jr.
Visibility:
Public.

Description

Print Preview: Handle a crashed initiator tab by showing a message in PP. Allow the user to reopen the crashed tab. Also refactor Observe notification handling in PrintPreviewTabController while I'm here. Review URL: http://codereview.chromium.org/7326036/ BUG=83656, 92066, 84764 TEST=Added new PrintPreviewTabControllerBrowserTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96966

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 28

Patch Set 4 : Addressed review comments #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 6

Patch Set 9 : '' #

Patch Set 10 : Added some tests #

Patch Set 11 : fix merge conflicts #

Patch Set 12 : fix a style issue #

Total comments: 10

Patch Set 13 : Addressed review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -61 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller.h View 1 2 3 4 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_tab_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +104 lines, -33 lines 0 comments Download
A chrome/browser/printing/print_preview_tab_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +170 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +5 lines, -13 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_data_source.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +17 lines, -1 line 2 comments Download
M chrome/browser/ui/webui/print_preview_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -5 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
kmadhusu
9 years, 4 months ago (2011-08-08 19:59:18 UTC) #1
dpapad
http://codereview.chromium.org/7550063/diff/2002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7550063/diff/2002/chrome/app/generated_resources.grd#newcode5843 chrome/app/generated_resources.grd:5843: Print is unavailable because the page you were trying ...
9 years, 4 months ago (2011-08-08 22:01:57 UTC) #2
Lei Zhang
http://codereview.chromium.org/7550063/diff/2002/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7550063/diff/2002/chrome/browser/printing/print_preview_message_handler.cc#newcode92 chrome/browser/printing/print_preview_message_handler.cc:92: if (!print_preview_tab || !print_preview_tab->web_ui()) Everything in this file can ...
9 years, 4 months ago (2011-08-09 20:51:18 UTC) #3
kmadhusu
Addressed review comments. I am still working on unit test failure. http://codereview.chromium.org/7550063/diff/2002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): ...
9 years, 4 months ago (2011-08-10 16:46:59 UTC) #4
kmadhusu
thestig: Updated print_preview_ui.h
9 years, 4 months ago (2011-08-10 21:23:24 UTC) #5
dpapad
http://codereview.chromium.org/7550063/diff/14001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7550063/diff/14001/chrome/browser/resources/print_preview/print_preview.js#newcode763 chrome/browser/resources/print_preview/print_preview.js:763: disableInputElementsInSidebar(); Should disableInputElementsInSidebar() be within displayErrorMessage() in order to ...
9 years, 4 months ago (2011-08-10 22:37:02 UTC) #6
Lei Zhang
http://codereview.chromium.org/7550063/diff/14001/chrome/browser/printing/print_preview_tab_controller.cc File chrome/browser/printing/print_preview_tab_controller.cc (right): http://codereview.chromium.org/7550063/diff/14001/chrome/browser/printing/print_preview_tab_controller.cc#newcode120 chrome/browser/printing/print_preview_tab_controller.cc:120: if (iter->second->render_view_host()->process() == rph) { If multiple tabs can ...
9 years, 4 months ago (2011-08-11 01:30:50 UTC) #7
kmadhusu
Addressed review comments. http://codereview.chromium.org/7550063/diff/14001/chrome/browser/printing/print_preview_tab_controller.cc File chrome/browser/printing/print_preview_tab_controller.cc (right): http://codereview.chromium.org/7550063/diff/14001/chrome/browser/printing/print_preview_tab_controller.cc#newcode120 chrome/browser/printing/print_preview_tab_controller.cc:120: if (iter->second->render_view_host()->process() == rph) { On ...
9 years, 4 months ago (2011-08-15 18:12:49 UTC) #8
Lei Zhang
http://codereview.chromium.org/7550063/diff/26002/chrome/browser/printing/print_preview_tab_controller.cc File chrome/browser/printing/print_preview_tab_controller.cc (right): http://codereview.chromium.org/7550063/diff/26002/chrome/browser/printing/print_preview_tab_controller.cc#newcode50 chrome/browser/printing/print_preview_tab_controller.cc:50: nit: do we need all these extra blank lines? ...
9 years, 4 months ago (2011-08-16 00:59:23 UTC) #9
kmadhusu
thestig: Addressed review comments. http://codereview.chromium.org/7550063/diff/26002/chrome/browser/printing/print_preview_tab_controller.cc File chrome/browser/printing/print_preview_tab_controller.cc (right): http://codereview.chromium.org/7550063/diff/26002/chrome/browser/printing/print_preview_tab_controller.cc#newcode50 chrome/browser/printing/print_preview_tab_controller.cc:50: On 2011/08/16 00:59:23, Lei Zhang ...
9 years, 4 months ago (2011-08-16 01:31:37 UTC) #10
Lei Zhang
LGTM http://codereview.chromium.org/7550063/diff/31002/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/7550063/diff/31002/chrome/browser/ui/webui/print_preview_handler.cc#newcode76 chrome/browser/ui/webui/print_preview_handler.cc:76: INITIATOR_TAB_CRASHED, do we need a corresponding change in ...
9 years, 4 months ago (2011-08-16 03:30:40 UTC) #11
kmadhusu
http://codereview.chromium.org/7550063/diff/31002/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/7550063/diff/31002/chrome/browser/ui/webui/print_preview_handler.cc#newcode76 chrome/browser/ui/webui/print_preview_handler.cc:76: INITIATOR_TAB_CRASHED, On 2011/08/16 03:30:41, Lei Zhang wrote: > do ...
9 years, 4 months ago (2011-08-16 16:46:47 UTC) #12
James Hawkins
LGTM. Was there a particular reason you chose to use a browsertest for the added ...
9 years, 4 months ago (2011-08-16 18:37:05 UTC) #13
kmadhusu
9 years, 4 months ago (2011-08-16 18:43:04 UTC) #14
On 2011/08/16 18:37:05, James Hawkins wrote:
> LGTM. Was there a particular reason you chose to use a browsertest for the
added
> tests?

This way I was able to get the NOTIFICATION_NAV_ENTRY_COMMITTED events.

Powered by Google App Engine
This is Rietveld 408576698