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

Issue 2920153004: Print Preview: Change getPrivetPrinters to cr.sendWithPromise (Closed)

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

Description

Print Preview: Change getPrivetPrinters to cr.sendWithPromise Change the getPrivetPrinters message to use cr.sendWithPromise. Also move the timeout to C++ from Javascript, and resolve the promise on timeout instead of sending a separate stop message from JS. BUG=717296 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2920153004 Cr-Commit-Position: refs/heads/master@{#478053} Committed: https://chromium.googlesource.com/chromium/src/+/242c8082ae66fee2667469a64c3e4b91205fe75a

Patch Set 1 #

Patch Set 2 : Clean up #

Patch Set 3 : Fix closure compile error #

Total comments: 6

Patch Set 4 : Address comments #

Patch Set 5 : Remove unnecessary callback argument #

Total comments: 5

Patch Set 6 : Address comments #

Patch Set 7 : Change notation #

Patch Set 8 : Change notation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -132 lines) Patch
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 4 5 6 10 chunks +50 lines, -89 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 4 5 3 chunks +6 lines, -26 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 2 3 4 5 5 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 chunks +22 lines, -11 lines 0 comments Download
M chrome/test/data/webui/print_preview/native_layer_stub.js View 1 2 3 4 5 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (30 generated)
rbpotter
3 years, 6 months ago (2017-06-06 20:52:10 UTC) #11
dpapad
https://codereview.chromium.org/2920153004/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2920153004/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js#newcode688 chrome/browser/resources/print_preview/data/destination_store.js:688: cr.addWebUIListener('privet-printer-added', Is fetchPreselectedDestination_ only called once? Is there any ...
3 years, 6 months ago (2017-06-06 21:16:34 UTC) #12
rbpotter
https://codereview.chromium.org/2920153004/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2920153004/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js#newcode688 chrome/browser/resources/print_preview/data/destination_store.js:688: cr.addWebUIListener('privet-printer-added', On 2017/06/06 21:16:33, dpapad wrote: > Is fetchPreselectedDestination_ ...
3 years, 6 months ago (2017-06-07 02:37:46 UTC) #13
dpapad
https://codereview.chromium.org/2920153004/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/2920153004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js#newcode98 chrome/browser/resources/print_preview/data/destination_store.js:98: * @private {!Object<Array<print_preview.DestinationOrigin>>} Should this be !Object<!Array<!print_preview.DestinationOrigin>> https://codereview.chromium.org/2920153004/diff/80001/chrome/browser/ui/webui/print_preview/print_preview_handler.h File ...
3 years, 6 months ago (2017-06-07 20:58:41 UTC) #20
rbpotter
https://codereview.chromium.org/2920153004/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/2920153004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js#newcode98 chrome/browser/resources/print_preview/data/destination_store.js:98: * @private {!Object<Array<print_preview.DestinationOrigin>>} On 2017/06/07 20:58:41, dpapad wrote: > ...
3 years, 6 months ago (2017-06-07 21:30:19 UTC) #21
dpapad
LGTM with nit. https://codereview.chromium.org/2920153004/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/2920153004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js#newcode98 chrome/browser/resources/print_preview/data/destination_store.js:98: * @private {!Object<Array<print_preview.DestinationOrigin>>} On 2017/06/07 at ...
3 years, 6 months ago (2017-06-07 21:34:48 UTC) #22
rbpotter
On 2017/06/07 21:34:48, dpapad wrote: > LGTM with nit. > > https://codereview.chromium.org/2920153004/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js > File chrome/browser/resources/print_preview/data/destination_store.js ...
3 years, 6 months ago (2017-06-07 22:26:17 UTC) #24
dpapad
> Updated to !Object<Array<!Origin>> as there should be no null elements > in the array. ...
3 years, 6 months ago (2017-06-07 22:38:20 UTC) #25
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/2920153004/160001
3 years, 6 months ago (2017-06-08 19:25:47 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 19:30:54 UTC) #39
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/242c8082ae66fee2667469a64c3e...

Powered by Google App Engine
This is Rietveld 408576698