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

Unified Diff: content/common/child_process_sandbox_support_impl_linux.cc

Issue 380243002: Support null language for fallbackFontForChar's IPC wrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « content/browser/renderer_host/sandbox_ipc_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2469ba73243fc05020fa5bc4730b77e510fadaa4..a63974c46b83079d7583c09ffbb77d3034267f07 100644
--- a/content/common/child_process_sandbox_support_impl_linux.cc
+++ b/content/common/child_process_sandbox_support_impl_linux.cc
@@ -28,7 +28,11 @@ void GetFallbackFontForCharacter(int32_t character,
Pickle request;
request.WriteInt(LinuxSandbox::METHOD_GET_FALLBACK_FONT_FOR_CHAR);
request.WriteInt(character);
- request.WriteString(preferred_locale);
+ if (preferred_locale) {
+ request.WriteBool(true);
+ request.WriteString(preferred_locale);
+ } else
+ request.WriteBool(false);
uint8_t buf[512];
const ssize_t n = UnixDomainSocket::SendRecvMsg(GetSandboxFD(), buf,
« no previous file with comments | « content/browser/renderer_host/sandbox_ipc_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698