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

Issue 2918243002: Change getExtensionPrinters 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

Change getExtensionPrinters to cr.sendWithPromise Use cr.sendWithPromise for getExtensionPrinters. Resolve the promise only when all extension printers have been listed. Also add a Web UI event to fire from C++ as individual lists of printers are ready. BUG=717296 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2918243002 Cr-Commit-Position: refs/heads/master@{#477826} Committed: https://chromium.googlesource.com/chromium/src/+/c0f846bdbfa4e685f05c48443923db9dfceaa35d

Patch Set 1 #

Patch Set 2 : Fix #

Total comments: 4

Patch Set 3 : Fix tests, address comments #

Patch Set 4 : Move add listener into init #

Total comments: 6

Patch Set 5 : Address comments #

Total comments: 2

Patch Set 6 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -46 lines) Patch
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 4 4 chunks +21 lines, -14 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 4 5 4 chunks +6 lines, -26 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/test/data/webui/print_preview/native_layer_stub.js View 1 2 3 4 5 3 chunks +11 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (26 generated)
dpapad
https://codereview.chromium.org/2918243002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2918243002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1628 chrome/browser/resources/print_preview/data/destination_store.js:1628: * @param {Array<!{extensionId: string, !Array It does not seem ...
3 years, 6 months ago (2017-06-03 01:00:00 UTC) #8
rbpotter
https://codereview.chromium.org/2918243002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2918243002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1628 chrome/browser/resources/print_preview/data/destination_store.js:1628: * @param {Array<!{extensionId: string, On 2017/06/03 01:00:00, dpapad wrote: ...
3 years, 6 months ago (2017-06-03 01:52:40 UTC) #11
dpapad
https://codereview.chromium.org/2918243002/diff/60001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2918243002/diff/60001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1643 chrome/browser/resources/print_preview/data/destination_store.js:1643: * @param {boolean} done Whether printers are done Nit: ...
3 years, 6 months ago (2017-06-07 03:20:11 UTC) #17
rbpotter
https://codereview.chromium.org/2918243002/diff/60001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2918243002/diff/60001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1643 chrome/browser/resources/print_preview/data/destination_store.js:1643: * @param {boolean} done Whether printers are done On ...
3 years, 6 months ago (2017-06-07 03:46:42 UTC) #20
dpapad
LGTM with nit. https://codereview.chromium.org/2918243002/diff/80001/chrome/browser/resources/print_preview/native_layer.js File chrome/browser/resources/print_preview/native_layer.js (right): https://codereview.chromium.org/2918243002/diff/80001/chrome/browser/resources/print_preview/native_layer.js#newcode262 chrome/browser/resources/print_preview/native_layer.js:262: * Requests that extension system dispatches ...
3 years, 6 months ago (2017-06-07 18:21:39 UTC) #23
rbpotter
https://codereview.chromium.org/2918243002/diff/80001/chrome/browser/resources/print_preview/native_layer.js File chrome/browser/resources/print_preview/native_layer.js (right): https://codereview.chromium.org/2918243002/diff/80001/chrome/browser/resources/print_preview/native_layer.js#newcode262 chrome/browser/resources/print_preview/native_layer.js:262: * Requests that extension system dispatches an event requesting ...
3 years, 6 months ago (2017-06-07 19:14:12 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/2918243002/100001
3 years, 6 months ago (2017-06-08 00:19:10 UTC) #31
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 00:24:58 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/c0f846bdbfa4e685f05c48443923...

Powered by Google App Engine
This is Rietveld 408576698