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 0c4e88c03a49d5935afb7bbc34827030c762ffde..9c77d0a8297b9100a5956a61fe7e01f2d747fa58 100644 |
--- a/chrome/service/service_utility_process_host.cc |
+++ b/chrome/service/service_utility_process_host.cc |
@@ -145,6 +145,8 @@ bool ServiceUtilityProcessHost::OnMessageReceived(const IPC::Message& message) { |
IPC_BEGIN_MESSAGE_MAP_EX(ServiceUtilityProcessHost, message, msg_is_ok) |
#if defined(OS_WIN) // This hack is Windows-specific. |
IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_PreCacheFont, OnPreCacheFont) |
+ IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ReleaseCachedFonts, |
+ OnReleaseCachedFonts) |
#endif |
IPC_MESSAGE_HANDLER( |
ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, |
@@ -166,7 +168,11 @@ bool ServiceUtilityProcessHost::MessageForClient(const IPC::Message& message) { |
#if defined(OS_WIN) // This hack is Windows-specific. |
void ServiceUtilityProcessHost::OnPreCacheFont(const LOGFONT& font) { |
- PreCacheFont(font); |
+ PreCacheFont(font, pid()); |
+} |
+ |
+void ServiceUtilityProcessHost::OnReleaseCachedFonts() { |
+ ReleaseCachedFonts(pid()); |
jam
2011/09/15 16:18:23
you use pid for service processes, while for rende
arthurhsu
2011/09/16 02:14:06
Done.
|
} |
#endif // OS_WIN |