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

Issue 2919693002: Print Preview: Change getPrinters to cr.sendWithPromise (Closed)

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

Description

Print Preview: Change getPrinters to cr.sendWithPromise Change one more native layer message to cr.sendWithPromise and adjust tests to use browser proxy for this message instead of triggering an event. BUG=717296 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2919693002 Cr-Commit-Position: refs/heads/master@{#476503} Committed: https://chromium.googlesource.com/chromium/src/+/10c0414243dada240a7fbac8853cb31d6ced5e86

Patch Set 1 #

Patch Set 2 : Fix test and rebase #

Patch Set 3 : Fix comments #

Total comments: 11

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -393 lines) Patch
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/resources/print_preview/data/local_parsers.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 4 chunks +14 lines, -16 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/test/data/webui/print_preview/native_layer_stub.js View 1 2 3 4 chunks +22 lines, -1 line 0 comments Download
M chrome/test/data/webui/print_preview/print_preview_tests.js View 1 2 3 37 chunks +296 lines, -361 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
rbpotter
3 years, 6 months ago (2017-06-01 19:01:23 UTC) #6
dpapad
https://codereview.chromium.org/2919693002/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/2919693002/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1081 chrome/browser/resources/print_preview/data/destination_store.js:1081: this.nativeLayer_.getPrinters().then( Isn't this equivalent to this.nativeLayer_.getPrinters().then(this.onLocalDestinationsSet_.bind(this)); https://codereview.chromium.org/2919693002/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1089 chrome/browser/resources/print_preview/data/destination_store.js:1089: this.isLocalDestinationSearchInProgress_ ...
3 years, 6 months ago (2017-06-01 19:01:54 UTC) #7
rbpotter
https://codereview.chromium.org/2919693002/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/2919693002/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js#newcode1081 chrome/browser/resources/print_preview/data/destination_store.js:1081: this.nativeLayer_.getPrinters().then( On 2017/06/01 19:01:53, dpapad wrote: > Isn't this ...
3 years, 6 months ago (2017-06-01 22:31:12 UTC) #10
dpapad
https://codereview.chromium.org/2919693002/diff/40001/chrome/test/data/webui/print_preview/print_preview_tests.js File chrome/test/data/webui/print_preview/print_preview_tests.js (right): https://codereview.chromium.org/2919693002/diff/40001/chrome/test/data/webui/print_preview/print_preview_tests.js#newcode267 chrome/test/data/webui/print_preview/print_preview_tests.js:267: return nativeLayer.whenCalled('getPrinters').then(function() { On 2017/06/01 at 22:31:12, rbpotter wrote: ...
3 years, 6 months ago (2017-06-01 23:02:33 UTC) #13
dpapad
On 2017/06/01 at 23:02:33, dpapad wrote: > https://codereview.chromium.org/2919693002/diff/40001/chrome/test/data/webui/print_preview/print_preview_tests.js > File chrome/test/data/webui/print_preview/print_preview_tests.js (right): > > https://codereview.chromium.org/2919693002/diff/40001/chrome/test/data/webui/print_preview/print_preview_tests.js#newcode267 ...
3 years, 6 months ago (2017-06-01 23:07:28 UTC) #14
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/2919693002/60001
3 years, 6 months ago (2017-06-02 00:34:21 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 00:39:16 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/10c0414243dada240a7fbac8853c...

Powered by Google App Engine
This is Rietveld 408576698