win: Ref-counted classes should have non-public destructors.
BUG=123295,467287
TBR=avi,rsleevi,kbr,grt
Review URL: https://codereview.chromium.org/1120203004
Cr-Commit-Position: refs/heads/master@{#328040}
diff --git a/content/common/font_cache_dispatcher_win.cc b/content/common/font_cache_dispatcher_win.cc
index 69aa7ae..880f0f4 100644
--- a/content/common/font_cache_dispatcher_win.cc
+++ b/content/common/font_cache_dispatcher_win.cc
@@ -143,6 +143,14 @@
: sender_(NULL) {
}
+bool FontCacheDispatcher::Send(IPC::Message* message) {
+ if (sender_)
+ return sender_->Send(message);
+
+ delete message;
+ return false;
+}
+
FontCacheDispatcher::~FontCacheDispatcher() {
}
@@ -165,14 +173,6 @@
sender_ = NULL;
}
-bool FontCacheDispatcher::Send(IPC::Message* message) {
- if (sender_)
- return sender_->Send(message);
-
- delete message;
- return false;
-}
-
void FontCacheDispatcher::OnPreCacheFont(const LOGFONT& font) {
// If a child process is running in a sandbox, GetTextMetrics()
// can sometimes fail. If a font has not been loaded