Index: chrome/browser/resources/print_preview/native_layer.js |
=================================================================== |
--- chrome/browser/resources/print_preview/native_layer.js (revision 149721) |
+++ chrome/browser/resources/print_preview/native_layer.js (working copy) |
@@ -149,7 +149,6 @@ |
print_preview.Destination.GooglePromotedId.SAVE_AS_PDF, |
'printWithCloudPrint': destination != null && !destination.isLocal, |
'deviceName': destination == null ? 'foo' : destination.id, |
- 'cloudPrintID': destination == null ? 'foo' : destination.id, |
'generateDraftData': printTicketStore.isDocumentModifiable, |
'fitToPageEnabled': printTicketStore.isFitToPageEnabled(), |
@@ -161,6 +160,10 @@ |
'collate': printTicketStore.isCollateEnabled() |
}; |
+ // Set 'cloudPrintID' only if the destination is not local. |
+ if (!destination.isLocal) |
+ ticket['cloudPrintID'] = destination.id; |
+ |
if (printTicketStore.hasMarginsCapability() && |
printTicketStore.getMarginsType() == |
print_preview.ticket_items.MarginsType.Value.CUSTOM) { |