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

Unified Diff: chrome/renderer/pepper/ppb_pdf_impl.cc

Issue 13071008: Revert "Modify content::GetFontTable to allow clients to control what is read." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/renderer/pepper/ppb_pdf_impl.cc
diff --git a/chrome/renderer/pepper/ppb_pdf_impl.cc b/chrome/renderer/pepper/ppb_pdf_impl.cc
index 47469bcade30fc395b27efcb573347340000b973..accb8b625320d51d8eed2b5075b88991e0f9ee0c 100644
--- a/chrome/renderer/pepper/ppb_pdf_impl.cc
+++ b/chrome/renderer/pepper/ppb_pdf_impl.cc
@@ -6,7 +6,6 @@
#include "base/command_line.h"
#include "base/metrics/histogram.h"
-#include "base/safe_numerics.h"
#include "base/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/common/chrome_switches.h"
@@ -62,8 +61,8 @@ class PrivateFontFile : public ppapi::Resource {
uint32_t* output_length) {
size_t temp_size = static_cast<size_t>(*output_length);
bool rv = content::GetFontTable(
- fd_, table, 0 /* offset */, static_cast<uint8_t*>(output), &temp_size);
- *output_length = base::checked_numeric_cast<uint32_t>(temp_size);
+ fd_, table, static_cast<uint8_t*>(output), &temp_size);
+ *output_length = static_cast<uint32_t>(temp_size);
return rv;
}
« no previous file with comments | « chrome/renderer/pepper/pepper_flash_font_file_host.cc ('k') | content/common/child_process_sandbox_support_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698