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

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

Issue 59843010: Print to Privet local printers (PDF only) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/data/destination_store.js
diff --git a/chrome/browser/resources/print_preview/data/destination_store.js b/chrome/browser/resources/print_preview/data/destination_store.js
index 0f6db150fcfd80ab87d9fa35ee1d443fbff21343..0a5c9477176ab736c67b5fc84c3287588baa548b 100644
--- a/chrome/browser/resources/print_preview/data/destination_store.js
+++ b/chrome/browser/resources/print_preview/data/destination_store.js
@@ -671,7 +671,8 @@ cr.define('print_preview', function() {
dest.capabilities = event.capabilities;
this.updateDestination(dest);
- if (this.selectedDestination_ == dest) {
+ if (this.selectedDestination_.isPrivet &&
+ this.selectedDestination_.id == dest.id) {
cr.dispatchSimpleEvent(
this,
DestinationStore.EventType.SELECTED_DESTINATION_CAPABILITIES_READY);

Powered by Google App Engine
This is Rietveld 408576698