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

Unified Diff: content/utility/utility_thread_impl.cc

Issue 897563002: Unify the three places that patch font loading for PDFium on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« content/child/child_thread_impl.h ('K') | « content/utility/utility_thread_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/utility/utility_thread_impl.cc
diff --git a/content/utility/utility_thread_impl.cc b/content/utility/utility_thread_impl.cc
index 32f9814ee032ffa15256d7fc4a1eac94d56d2b9a..26af2b17a06ae523c4e7c01d755698731fc631c4 100644
--- a/content/utility/utility_thread_impl.cc
+++ b/content/utility/utility_thread_impl.cc
@@ -40,7 +40,7 @@ UtilityThreadImpl::UtilityThreadImpl() : single_process_(false) {
}
UtilityThreadImpl::UtilityThreadImpl(const std::string& channel_name)
- : ChildThread(Options(channel_name, false)),
+ : ChildThreadImpl(Options(channel_name, false)),
single_process_(true) {
Init();
}
@@ -49,16 +49,12 @@ UtilityThreadImpl::~UtilityThreadImpl() {
}
void UtilityThreadImpl::Shutdown() {
- ChildThread::Shutdown();
+ ChildThreadImpl::Shutdown();
if (!single_process_)
blink::shutdown();
}
-bool UtilityThreadImpl::Send(IPC::Message* msg) {
- return ChildThread::Send(msg);
-}
-
void UtilityThreadImpl::ReleaseProcessIfNeeded() {
if (batch_mode_)
return;
@@ -74,18 +70,6 @@ void UtilityThreadImpl::ReleaseProcessIfNeeded() {
}
}
-#if defined(OS_WIN)
-
-void UtilityThreadImpl::PreCacheFont(const LOGFONT& log_font) {
- Send(new ChildProcessHostMsg_PreCacheFont(log_font));
-}
-
-void UtilityThreadImpl::ReleaseCachedFonts() {
- Send(new ChildProcessHostMsg_ReleaseCachedFonts());
-}
-
-#endif // OS_WIN
-
void UtilityThreadImpl::Init() {
batch_mode_ = false;
ChildProcess::current()->AddRefProcess();
« content/child/child_thread_impl.h ('K') | « content/utility/utility_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698