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

Issue 2961863002: Print Preview: close dialog when system dialog is open (Win) (Closed)

Created:
3 years, 5 months ago by rbpotter
Modified:
3 years, 5 months ago
Reviewers:
Lei Zhang, dpapad
CC:
arv+watch_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Print Preview: close dialog when system dialog is open (Win) When the system dialog opens on Windows, this is sent through the normal print message. However, since the dialog is modal, the promise will not be resolved until the dialog closes if the message is sent to the renderer first. Resolve the promise before forwarding settings to the renderer. BUG=737035 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2961863002 Cr-Commit-Position: refs/heads/master@{#482855} Committed: https://chromium.googlesource.com/chromium/src/+/63f156d9c2dfd6a04d1a49a58a1c0178b1e3f6e1

Patch Set 1 #

Patch Set 2 : Change to always resolve promise #

Patch Set 3 : Adjust comment #

Total comments: 6

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -22 lines) Patch
M chrome/browser/resources/print_preview/print_preview.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 3 chunks +15 lines, -20 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
rbpotter
3 years, 5 months ago (2017-06-27 21:31:31 UTC) #11
Lei Zhang
lgtm https://codereview.chromium.org/2961863002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/2961863002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode1041 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1041: // the renderer. for additional context: the renderer ...
3 years, 5 months ago (2017-06-27 21:58:49 UTC) #12
dpapad
LGTM
3 years, 5 months ago (2017-06-27 22:29:34 UTC) #13
rbpotter
https://codereview.chromium.org/2961863002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/2961863002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode1041 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1041: // the renderer. On 2017/06/27 21:58:48, Lei Zhang wrote: ...
3 years, 5 months ago (2017-06-28 00:18:58 UTC) #18
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/2961863002/60001
3 years, 5 months ago (2017-06-28 02:24:23 UTC) #23
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 02:30:24 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/63f156d9c2dfd6a04d1a49a58a1c...

Powered by Google App Engine
This is Rietveld 408576698