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

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

Issue 900503002: List printers managed by extensions in print preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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_header.js
diff --git a/chrome/browser/resources/print_preview/print_header.js b/chrome/browser/resources/print_preview/print_header.js
index cc0895643fa9fe773bc4d2a7dd8f404017b13e7e..6d623fa7dbed06da3621d9814fbe2d99dcd1bfc8 100644
--- a/chrome/browser/resources/print_preview/print_header.js
+++ b/chrome/browser/resources/print_preview/print_header.js
@@ -142,6 +142,9 @@ cr.define('print_preview', function() {
updatePrintButtonEnabledState_: function() {
this.getChildElement('button.print').disabled =
this.destinationStore_.selectedDestination == null ||
+ // TODO(tbarzic): Remove this when print request for extension
+ // destinations is wired up.
+ this.destinationStore_.selectedDestination.isExtension ||
!this.isEnabled_ ||
!this.isPrintButtonEnabled_ ||
!this.printTicketStore_.isTicketValid();
« no previous file with comments | « chrome/browser/resources/print_preview/native_layer.js ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698