diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 22:58:19 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 22:58:19 +0000 |
commit | 3aedb9e27eecbac53b56e625615cf13f4841d3a9 (patch) | |
tree | 5819bf842ddecf8c50eee023b69c70a5497b445f /chrome/utility | |
parent | 9d1d8ad57b199c26cda3e0b54198dfb00bc73cd2 (diff) | |
download | chromium_src-3aedb9e27eecbac53b56e625615cf13f4841d3a9.zip chromium_src-3aedb9e27eecbac53b56e625615cf13f4841d3a9.tar.gz chromium_src-3aedb9e27eecbac53b56e625615cf13f4841d3a9.tar.bz2 |
Removed unnecessary function parameter
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6665004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/utility')
-rw-r--r-- | chrome/utility/utility_thread.cc | 6 | ||||
-rw-r--r-- | chrome/utility/utility_thread.h | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/chrome/utility/utility_thread.cc b/chrome/utility/utility_thread.cc index 9257d38..d9fd576 100644 --- a/chrome/utility/utility_thread.cc +++ b/chrome/utility/utility_thread.cc @@ -137,15 +137,12 @@ void UtilityThread::OnRenderPDFPagesToMetafile( const std::vector<printing::PageRange>& page_ranges) { bool succeeded = false; #if defined(OS_WIN) - scoped_ptr<printing::NativeMetafile> metafile( - printing::NativeMetafileFactory::CreateMetafile()); int highest_rendered_page_number = 0; succeeded = RenderPDFToWinMetafile(pdf_file, metafile_path, render_area, render_dpi, page_ranges, - metafile.get(), &highest_rendered_page_number); if (succeeded) { Send(new UtilityHostMsg_RenderPDFPagesToMetafile_Succeeded( @@ -211,7 +208,6 @@ bool UtilityThread::RenderPDFToWinMetafile( const gfx::Rect& render_area, int render_dpi, const std::vector<printing::PageRange>& page_ranges, - printing::NativeMetafile* metafile, int* highest_rendered_page_number) { *highest_rendered_page_number = -1; base::win::ScopedHandle file(pdf_file); @@ -261,6 +257,8 @@ bool UtilityThread::RenderPDFToWinMetafile( if (!get_info_proc(&buffer.front(), buffer.size(), &total_page_count, NULL)) return false; + scoped_ptr<printing::NativeMetafile> metafile( + printing::NativeMetafileFactory::CreateMetafile()); metafile->CreateFileBackedDc(NULL, NULL, metafile_path); // Since we created the metafile using the screen DPI (but we actually want // the PDF DLL to print using the passed in render_dpi, we apply the following diff --git a/chrome/utility/utility_thread.h b/chrome/utility/utility_thread.h index e1e016e..c5e32c7 100644 --- a/chrome/utility/utility_thread.h +++ b/chrome/utility/utility_thread.h @@ -68,7 +68,6 @@ class UtilityThread : public ChildThread { const gfx::Rect& render_area, int render_dpi, const std::vector<printing::PageRange>& page_ranges, - printing::NativeMetafile* metafile, int* highest_rendered_page_number); #endif // defined(OS_WIN) |