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

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: Fix a style error 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 f37b482d28da3da67b7afc2f5ce06495e0e5cd72..0e5d06e8e0c9772e411009d8a218e7aa7b83d61d 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