| Index: chrome/browser/resources/print_preview/print_preview.js
|
| diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
|
| index bda66a66c5602cd128b5d56920b10b994d1fc49d..867bdc340060faedfc27839ed17d3388134ca5f8 100644
|
| --- a/chrome/browser/resources/print_preview/print_preview.js
|
| +++ b/chrome/browser/resources/print_preview/print_preview.js
|
| @@ -358,7 +358,7 @@ cr.define('print_preview', function() {
|
| this.onCloudPrintDialogLinkClick_.bind(this));
|
| if ($('open-pdf-in-preview-link')) {
|
| this.tracker.add(
|
| - $('open-pdf-in-preview-link'),
|
| + getRequiredElement('open-pdf-in-preview-link'),
|
| 'click',
|
| this.onOpenPdfInPreviewLinkClick_.bind(this));
|
| }
|
| @@ -531,7 +531,7 @@ cr.define('print_preview', function() {
|
|
|
| /**
|
| * Attempts to print if needed and if ready.
|
| - * @return {PrintPreview.PrintAttemptResult_} Attempt result.
|
| + * @return {print_preview.PrintPreview.PrintAttemptResult_} Attempt result.
|
| * @private
|
| */
|
| printIfReady_: function() {
|
| @@ -564,7 +564,7 @@ cr.define('print_preview', function() {
|
| PRINT_WITH_SETTINGS_COLLAPSED);
|
| }
|
| this.nativeLayer_.startPrint(
|
| - this.destinationStore_.selectedDestination,
|
| + assert(this.destinationStore_.selectedDestination),
|
| this.printTicketStore_,
|
| this.cloudPrintInterface_,
|
| this.documentInfo_,
|
| @@ -699,7 +699,7 @@ cr.define('print_preview', function() {
|
| assert(this.cloudPrintInterface_ != null,
|
| 'Google Cloud Print is not enabled');
|
| this.cloudPrintInterface_.submit(
|
| - this.destinationStore_.selectedDestination,
|
| + assert(this.destinationStore_.selectedDestination),
|
| this.printTicketStore_,
|
| this.documentInfo_,
|
| event.data);
|
|
|