Skip to content

Commit

Permalink
Set the job title of print jobs.
Browse files Browse the repository at this point in the history
BUG=http://crbug.com/29188
TEST=as in bug

Review URL: http://codereview.chromium.org/1756014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45704 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
avi@chromium.org committed Apr 27, 2010
1 parent ad6b3cd commit 2380494
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions printing/printing_context_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import <AppKit/AppKit.h>

#include "base/logging.h"
#include "base/sys_string_conversions.h"

namespace printing {

Expand Down Expand Up @@ -122,6 +123,11 @@
static_cast<PMPrintSettings>([print_info_ PMPrintSettings]);
PMPageFormat page_format =
static_cast<PMPageFormat>([print_info_ PMPageFormat]);

scoped_cftyperef<CFStringRef> job_title(
base::SysWideToCFStringRef(document_name));
PMPrintSettingsSetJobName(print_settings, job_title.get());

OSStatus status = PMSessionBeginCGDocumentNoDialog(print_session,
print_settings,
page_format);
Expand Down

0 comments on commit 2380494

Please sign in to comment.