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

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

Issue 2862203002: Print Preview: Fix data/ errors (Closed)
Patch Set: Fix destination resolver Created 3 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/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index 329114029664091c40b417ce21fbd5985fe3f6e0..fe4a016fbe2b54f099df8ac07386e45b2438f202 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -1184,7 +1184,7 @@ cr.define('print_preview', function() {
return true;
var selectedDest = this.destinationStore_.selectedDestination;
return !!selectedDest &&
- selectedDest.origin == print_preview.Destination.Origin.LOCAL &&
+ selectedDest.origin == print_preview.DestinationOrigin.LOCAL &&
selectedDest.id !=
print_preview.Destination.GooglePromotedId.SAVE_AS_PDF;
},
@@ -1271,6 +1271,7 @@ cr.define('print_preview', function() {
// <include src="data/page_number_set.js">
// <include src="data/destination.js">
+// <include src="data/destination_match.js">
// <include src="data/local_parsers.js">
// <include src="data/cloud_parsers.js">
// <include src="data/destination_store.js">

Powered by Google App Engine
This is Rietveld 408576698