Chromium Code Reviews| Index: chrome/browser/resources/print_preview/search/destination_search.js |
| diff --git a/chrome/browser/resources/print_preview/search/destination_search.js b/chrome/browser/resources/print_preview/search/destination_search.js |
| index c9531b014aeff7d0d37cc3891d3c9e10a5e80b7c..e613ace7155794863c3505093d7d3ca39d4e2b6e 100644 |
| --- a/chrome/browser/resources/print_preview/search/destination_search.js |
| +++ b/chrome/browser/resources/print_preview/search/destination_search.js |
| @@ -585,9 +585,13 @@ cr.define('print_preview', function() { |
| */ |
| onDestinationConfigureRequest_: function(event) { |
| var destination = event.detail.destination; |
| - var destinationItem = destination.isLocal ? |
| - this.localList_.getDestinationItem(destination.id) : |
| - this.cloudList_.getDestinationItem(destination.id); |
| + // Cloud Print Device printers are stored in the local list |
| + // crbug.com/713831. |
| + // TODO(crbug.com/416701): Upon resolution, update this. |
| + var destinationItem = (destination.isLocal || |
| + destination.origin == print_preview.Destination.Origin.DEVICE) ? |
|
Lei Zhang
2017/04/25 01:20:45
Indentation looks wonky. Should be 4 from var, and
skau
2017/04/25 01:45:47
I ran it through the C++ formatter and positioned
|
| + this.localList_.getDestinationItem(destination.id) : |
| + this.cloudList_.getDestinationItem(destination.id); |
| assert(destinationItem != null, |
| 'User does not select a valid destination item.'); |