summaryrefslogtreecommitdiffstats
path: root/printing/printed_document.cc
diff options
context:
space:
mode:
authordpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 01:39:42 +0000
committerdpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 01:39:42 +0000
commit8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7 (patch)
treefba63800e4b02432be8c45673e32f234d69cce9e /printing/printed_document.cc
parent0da15e586f92f3488658034bfef5ecbf42656791 (diff)
downloadchromium_src-8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7.zip
chromium_src-8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7.tar.gz
chromium_src-8f17cd3e165a4d0cc9a03c029ee5f4d39c5e77e7.tar.bz2
Unifying NativeMetafile class interface (as much as possible) for Linux, Mac, Win
BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6611032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document.cc')
-rw-r--r--printing/printed_document.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 45603b5..07eeec6d 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -261,12 +261,14 @@ void PrintedDocument::DebugDump(const PrintedPage& page) {
filename += name();
filename += ASCIIToUTF16("_");
filename += ASCIIToUTF16(StringPrintf("%02d", page.page_number()));
- filename += ASCIIToUTF16("_.emf");
#if defined(OS_WIN)
+ filename += ASCIIToUTF16("_.emf");
page.native_metafile()->SaveTo(
- g_debug_dump_info.Get().debug_dump_path.Append(filename).value());
+ g_debug_dump_info.Get().debug_dump_path.Append(filename));
#else // OS_WIN
- NOTIMPLEMENTED(); // TODO: convert SaveTo to accept a FilePath
+ filename += ASCIIToUTF16("_.pdf");
+ page.native_metafile()->SaveTo(
+ g_debug_dump_info.Get().debug_dump_path.Append(UTF16ToUTF8(filename)));
#endif // OS_WIN
}