| Index: chrome/browser/resources/print_preview/data/destination_store.js
|
| diff --git a/chrome/browser/resources/print_preview/data/destination_store.js b/chrome/browser/resources/print_preview/data/destination_store.js
|
| index 19499638cd577b7a46a0f850f0cfd48baaa9da5c..6cf15de709e1319f6bedeedfabb571821a621c95 100644
|
| --- a/chrome/browser/resources/print_preview/data/destination_store.js
|
| +++ b/chrome/browser/resources/print_preview/data/destination_store.js
|
| @@ -697,6 +697,7 @@ cr.define('print_preview', function() {
|
| * destination.
|
| * @param {string} extensionName Extension name associated with this
|
| * destination.
|
| + * @return {boolean} Whether capabilities fetch was successfully started.
|
| * @private
|
| */
|
| fetchPreselectedDestination_: function(
|
| @@ -735,11 +736,15 @@ cr.define('print_preview', function() {
|
| name,
|
| false /*isRecent*/,
|
| print_preview.DestinationConnectionStatus.ONLINE);
|
| - this.selectedDestination_.capabilities = capabilities;
|
|
|
| - cr.dispatchSimpleEvent(
|
| - this,
|
| - DestinationStore.EventType.CACHED_SELECTED_DESTINATION_INFO_READY);
|
| + if (capabilities) {
|
| + this.selectedDestination_.capabilities = capabilities;
|
| +
|
| + cr.dispatchSimpleEvent(
|
| + this,
|
| + DestinationStore.EventType
|
| + .CACHED_SELECTED_DESTINATION_INFO_READY);
|
| + }
|
| return true;
|
| }
|
|
|
|
|