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 712bf420df5185690ca6f905ab7136bbbad92b55..c297cdf5c965d5927b5f68f0594f44e0882e8463 100644 |
--- a/chrome/browser/resources/print_preview/native_layer.js |
+++ b/chrome/browser/resources/print_preview/native_layer.js |
@@ -149,7 +149,6 @@ cr.define('print_preview', function() { |
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 @@ cr.define('print_preview', function() { |
'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) { |