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

Issue 2606043004: Perform printer setup on Chrome OS before selecting printer. (Closed)

Created:
3 years, 11 months ago by skau
Modified:
3 years, 11 months ago
CC:
arv+watch_chromium.org, chromium-reviews, Carlson, rbpotter
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Perform printer setup on Chrome OS before selecting printer. In Chrome OS, printers might need to be configured before they can be used. For local printers with origin CROS, perform configuration before continuing to print preview. The chosen approach is similar to that of the extension printers. BUG=670819 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2606043004 Cr-Commit-Position: refs/heads/master@{#443735} Committed: https://chromium.googlesource.com/chromium/src/+/f14c7a220a083a7fd6870a10f35fdcf9a8c0b01b

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase #

Patch Set 3 : fix test #

Patch Set 4 : address comments, fix tests #

Total comments: 2

Patch Set 5 : fix nit #

Total comments: 24

Patch Set 6 : address comments #

Patch Set 7 : fix unit test #

Total comments: 8

Patch Set 8 : CustomEvent #

Total comments: 6

Patch Set 9 : rebase #

Patch Set 10 : address comments #

Total comments: 6

Patch Set 11 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -30 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination.js View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 4 5 6 7 8 9 11 chunks +64 lines, -9 lines 0 comments Download
M chrome/browser/resources/print_preview/data/local_parsers.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/cros_destination_resolver.html View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/cros_destination_resolver.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +142 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/search/destination_search.js View 1 2 3 4 5 6 7 8 9 3 chunks +35 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 6 7 3 chunks +47 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 7 8 2 chunks +37 lines, -11 lines 0 comments Download
A chrome/test/data/webui/print_preview_destination_search_test.js View 1 2 3 4 5 6 1 chunk +188 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (24 generated)
skau
vitalybuka@: chrome/browser/resources/print_preview/* xdai@: Everything dpapad@: webui owner justincarlson@: fyi
3 years, 11 months ago (2016-12-29 23:17:30 UTC) #3
Vitaly Buka (NO REVIEWS)
chrome/browser/resources/print_preview/ LGTM
3 years, 11 months ago (2016-12-29 23:20:09 UTC) #6
xdai1
Generally looks good. https://codereview.chromium.org/2606043004/diff/1/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2606043004/diff/1/chrome/browser/resources/print_preview/data/destination_store.js#newcode1287 chrome/browser/resources/print_preview/data/destination_store.js:1287: DestinationStore.EventType.PRINTER_CONFIGURED); Seems there is no DestinationStore.EventType.PRINTER_CONFIGURED ...
3 years, 11 months ago (2016-12-30 00:38:13 UTC) #7
skau
Thanks for the review. PTAL. https://codereview.chromium.org/2606043004/diff/1/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2606043004/diff/1/chrome/browser/resources/print_preview/data/destination_store.js#newcode1287 chrome/browser/resources/print_preview/data/destination_store.js:1287: DestinationStore.EventType.PRINTER_CONFIGURED); On 2016/12/30 00:38:13, ...
3 years, 11 months ago (2017-01-04 18:57:06 UTC) #12
xdai1
lgtm https://codereview.chromium.org/2606043004/diff/60001/chrome/browser/resources/print_preview/search/cros_destination_resolver.html File chrome/browser/resources/print_preview/search/cros_destination_resolver.html (right): https://codereview.chromium.org/2606043004/diff/60001/chrome/browser/resources/print_preview/search/cros_destination_resolver.html#newcode5 chrome/browser/resources/print_preview/search/cros_destination_resolver.html:5: <div class="resolving-message" i18n-content="resolveCrosPrinterMessage"></div> nit: put </div> on a ...
3 years, 11 months ago (2017-01-05 00:18:56 UTC) #15
skau
https://codereview.chromium.org/2606043004/diff/60001/chrome/browser/resources/print_preview/search/cros_destination_resolver.html File chrome/browser/resources/print_preview/search/cros_destination_resolver.html (right): https://codereview.chromium.org/2606043004/diff/60001/chrome/browser/resources/print_preview/search/cros_destination_resolver.html#newcode5 chrome/browser/resources/print_preview/search/cros_destination_resolver.html:5: <div class="resolving-message" i18n-content="resolveCrosPrinterMessage"></div> On 2017/01/05 00:18:56, xdai1 wrote: > ...
3 years, 11 months ago (2017-01-05 20:25:39 UTC) #16
dpapad
3 years, 11 months ago (2017-01-05 21:44:38 UTC) #17
skau
dpapad@: Could you take a look? I spoke with rbpotter@ and she has no objections.
3 years, 11 months ago (2017-01-11 18:57:32 UTC) #18
dpapad
https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1108 chrome/browser/resources/print_preview/data/destination_store.js:1108: resolveCrosDestination: function(destination) { @param annotation missing. https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1502 chrome/browser/resources/print_preview/data/destination_store.js:1502: this.handleCrosDestinationResolved_.bind(this)); ...
3 years, 11 months ago (2017-01-11 20:36:31 UTC) #19
skau
Thanks for the review. All comments have been addressed. https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1108 chrome/browser/resources/print_preview/data/destination_store.js:1108: ...
3 years, 11 months ago (2017-01-12 00:36:16 UTC) #22
dpapad
https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js File chrome/browser/resources/print_preview/search/cros_destination_resolver.js (right): https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js#newcode127 chrome/browser/resources/print_preview/search/cros_destination_resolver.js:127: * fulfilled when the destination resolving is finished. On ...
3 years, 11 months ago (2017-01-12 01:18:10 UTC) #23
skau
Incorporated the second round of comments. PTAL. Thanks for the tips. https://codereview.chromium.org/2606043004/diff/80001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js File chrome/browser/resources/print_preview/search/cros_destination_resolver.js (right): ...
3 years, 11 months ago (2017-01-12 02:17:17 UTC) #28
dpapad
https://codereview.chromium.org/2606043004/diff/140001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2606043004/diff/140001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1125 chrome/browser/resources/print_preview/data/destination_store.js:1125: then( Nit: You would avoid a lot of indentation ...
3 years, 11 months ago (2017-01-12 19:32:50 UTC) #31
skau
Comments addressed PTAL https://codereview.chromium.org/2606043004/diff/140001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2606043004/diff/140001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1125 chrome/browser/resources/print_preview/data/destination_store.js:1125: then( On 2017/01/12 19:32:50, dpapad wrote: ...
3 years, 11 months ago (2017-01-12 23:24:04 UTC) #34
skau
dpapad@: Ping?
3 years, 11 months ago (2017-01-13 22:45:26 UTC) #35
dpapad
LGTM with nits. https://codereview.chromium.org/2606043004/diff/180001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js File chrome/browser/resources/print_preview/search/cros_destination_resolver.js (right): https://codereview.chromium.org/2606043004/diff/180001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js#newcode81 chrome/browser/resources/print_preview/search/cros_destination_resolver.js:81: * @param {Event} event s/Event/CustomEvent https://codereview.chromium.org/2606043004/diff/180001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js#newcode90 ...
3 years, 11 months ago (2017-01-13 22:50:50 UTC) #36
skau
Thanks! https://codereview.chromium.org/2606043004/diff/180001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js File chrome/browser/resources/print_preview/search/cros_destination_resolver.js (right): https://codereview.chromium.org/2606043004/diff/180001/chrome/browser/resources/print_preview/search/cros_destination_resolver.js#newcode81 chrome/browser/resources/print_preview/search/cros_destination_resolver.js:81: * @param {Event} event On 2017/01/13 22:50:49, dpapad ...
3 years, 11 months ago (2017-01-13 22:57:43 UTC) #37
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/2606043004/200001
3 years, 11 months ago (2017-01-13 22:58:36 UTC) #40
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 00:07:38 UTC) #43
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/f14c7a220a083a7fd6870a10f35f...

Powered by Google App Engine
This is Rietveld 408576698