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

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

Issue 6775013: PrintPreview: While printing the preview data, set the initiator tab title as print job name. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated the CL. Created 9 years, 9 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.js
diff --git a/chrome/browser/resources/print_preview.js b/chrome/browser/resources/print_preview.js
index 7aab2e244eec70b23aa63399473809503fbddaed..6d7f6838f5607b8a84fcd348121e089c72bc8139 100644
--- a/chrome/browser/resources/print_preview.js
+++ b/chrome/browser/resources/print_preview.js
@@ -6,7 +6,7 @@ var localStrings = new LocalStrings();
var hasPDFPlugin = true;
var expectedPageCount = 0;
var pageRangesInfo = [];
-var printJobTitle = '';
+var printJobTitle = document.title;
/**
* Window onload handler, sets up the page.
@@ -197,6 +197,7 @@ function getSettingsJSON() {
var color = isColor();
return JSON.stringify({'printerName': printerName,
+ 'printJobTitle': printJobTitle,
'pageRange': pageRangesInfo,
'printAll': printAll,
'twoSided': twoSided,

Powered by Google App Engine
This is Rietveld 408576698