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

Unified Diff: chrome/renderer/pepper/pepper_flash_font_file_host.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
« no previous file with comments | « no previous file | chrome/renderer/pepper/ppb_pdf_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/pepper_flash_font_file_host.cc
diff --git a/chrome/renderer/pepper/pepper_flash_font_file_host.cc b/chrome/renderer/pepper/pepper_flash_font_file_host.cc
index 524c2276c6d43df3301ecdeffc7e58af17289cd4..b427265cb6cadb63829aeed961573b6139ceb36c 100644
--- a/chrome/renderer/pepper/pepper_flash_font_file_host.cc
+++ b/chrome/renderer/pepper/pepper_flash_font_file_host.cc
@@ -57,12 +57,11 @@ int32_t PepperFlashFontFileHost::OnGetFontTable(
#if defined(OS_LINUX) || defined(OS_OPENBSD)
if (fd_ != -1) {
size_t length = 0;
- if (content::GetFontTable(fd_, table, 0 /* offset */, NULL, &length)) {
+ if (content::GetFontTable(fd_, table, NULL, &length)) {
contents.resize(length);
uint8_t* contents_ptr =
reinterpret_cast<uint8_t*>(const_cast<char*>(contents.c_str()));
- if (content::GetFontTable(fd_, table, 0 /* offset */,
- contents_ptr, &length)) {
+ if (content::GetFontTable(fd_, table, contents_ptr, &length)) {
result = PP_OK;
} else {
contents.clear();
« no previous file with comments | « no previous file | chrome/renderer/pepper/ppb_pdf_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698