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

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

Issue 15495007: Begins preview generation as soon as initial state is loaded. Doesn't wait for print destination to… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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/native_layer.js
diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js
index 1e034c0bcf62a045414eecf803eb9f4340ef7776..e6ac8c19f646778c102c0fa6cdb50ad3c5b31159 100644
--- a/chrome/browser/resources/print_preview/native_layer.js
+++ b/chrome/browser/resources/print_preview/native_layer.js
@@ -182,7 +182,7 @@ cr.define('print_preview', function() {
};
// Set 'cloudPrintID' only if the destination is not local.
- if (!destination.isLocal) {
+ if (destination && !destination.isLocal) {
ticket['cloudPrintID'] = destination.id;
}

Powered by Google App Engine
This is Rietveld 408576698