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

Unified Diff: chrome/service/service_utility_process_host.cc

Issue 641923002: Change PDF scaling factor from double to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 2 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
« no previous file with comments | « chrome/service/service_utility_process_host.h ('k') | chrome/utility/printing_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_utility_process_host.cc
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc
index 5ce45c0abb7d63229ad78911ed045355d104226a..f08a3bdf47992cfefdb0422d377e99f7e5893b39 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -317,7 +317,7 @@ void ServiceUtilityProcessHost::OnRenderPDFPagesToMetafilesPageCount(
void ServiceUtilityProcessHost::OnRenderPDFPagesToMetafilesPageDone(
bool success,
- double scale_factor) {
+ float scale_factor) {
DCHECK(waiting_for_reply_);
if (!pdf_to_emf_state_ || !success)
return OnPDFToEmfFinished(false);
@@ -408,7 +408,7 @@ void ServiceUtilityProcessHost::OnGetPrinterSemanticCapsAndDefaultsFailed(
printing::PrinterSemanticCapsAndDefaults()));
}
-bool ServiceUtilityProcessHost::Client::MetafileAvailable(double scale_factor,
+bool ServiceUtilityProcessHost::Client::MetafileAvailable(float scale_factor,
base::File file) {
file.Seek(base::File::FROM_BEGIN, 0);
int64 size = file.GetLength();
« no previous file with comments | « chrome/service/service_utility_process_host.h ('k') | chrome/utility/printing_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698