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

Unified Diff: chrome/browser/resources/print_preview/print_preview.js

Issue 606213002: Compile print_preview, part 6: reduce down to 48 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@J_print_preview_5
Patch Set: vitalybuka@'s review Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 dff311b7cce43e2024e57a8baa54dd5bf4d69b04..089c472f064e54e1bf8a5de2550599ffcc0cad9b 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);

Powered by Google App Engine
This is Rietveld 408576698