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

Unified Diff: content/common/child_process_sandbox_support_impl_linux.cc

Issue 336153003: Keep track of paths for fallback fonts in sandbox_ipc_linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on fciId->fontconfigInterfaceId rename Created 6 years, 6 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: content/common/child_process_sandbox_support_impl_linux.cc
diff --git a/content/common/child_process_sandbox_support_impl_linux.cc b/content/common/child_process_sandbox_support_impl_linux.cc
index 8c3c259f54e9c4f9a08daad15200333a5e7e5cdb..2469ba73243fc05020fa5bc4730b77e510fadaa4 100644
--- a/content/common/child_process_sandbox_support_impl_linux.cc
+++ b/content/common/child_process_sandbox_support_impl_linux.cc
@@ -36,6 +36,7 @@ void GetFallbackFontForCharacter(int32_t character,
std::string family_name;
std::string filename;
+ int fontconfigInterfaceId = 0;
int ttcIndex = 0;
bool isBold = false;
bool isItalic = false;
@@ -44,11 +45,13 @@ void GetFallbackFontForCharacter(int32_t character,
PickleIterator pickle_iter(reply);
if (reply.ReadString(&pickle_iter, &family_name) &&
reply.ReadString(&pickle_iter, &filename) &&
+ reply.ReadInt(&pickle_iter, &fontconfigInterfaceId) &&
reply.ReadInt(&pickle_iter, &ttcIndex) &&
reply.ReadBool(&pickle_iter, &isBold) &&
reply.ReadBool(&pickle_iter, &isItalic)) {
fallbackFont->name = family_name;
fallbackFont->filename = filename;
+ fallbackFont->fontconfigInterfaceId = fontconfigInterfaceId;
fallbackFont->ttcIndex = ttcIndex;
fallbackFont->isBold = isBold;
fallbackFont->isItalic = isItalic;
« no previous file with comments | « content/browser/renderer_host/sandbox_ipc_linux.cc ('k') | content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698