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

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

Issue 2450163002: Print Preview: Handle printer media without name fields. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54beb18a138122d9c7aa43aca29fb276c3af5db2..a96778fcea849646b4df90b85660bf85ce4884fd 100644
--- a/chrome/browser/resources/print_preview/data/destination_store.js
+++ b/chrome/browser/resources/print_preview/data/destination_store.js
@@ -564,7 +564,7 @@ cr.define('print_preview', function() {
var categoryStandardMisc = [];
var categoryCustom = [];
for (var i = 0, media; media = mediaSize.option[i]; i++) {
- var name = media.name;
+ var name = media.name || 'CUSTOM';
var category;
if (name.startsWith('NA_')) {
category = categoryStandardNA;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698