summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_message_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_message_service.h')
-rw-r--r--chrome/browser/extensions/extension_message_service.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_message_service.h b/chrome/browser/extensions/extension_message_service.h
index cf52b65..9451381 100644
--- a/chrome/browser/extensions/extension_message_service.h
+++ b/chrome/browser/extensions/extension_message_service.h
@@ -62,7 +62,6 @@ class ExtensionMessageService
// --- UI thread only:
explicit ExtensionMessageService(Profile* profile);
- ~ExtensionMessageService();
// Notification that our owning profile is going away.
void ProfileDestroyed();
@@ -128,9 +127,13 @@ class ExtensionMessageService
ResourceMessageFilter* source);
private:
+ friend class base::RefCountedThreadSafe<ExtensionMessageService>;
+
// A map of channel ID to its channel object.
typedef std::map<int, MessageChannel*> MessageChannelMap;
+ ~ExtensionMessageService();
+
// Allocates a pair of port ids.
// NOTE: this can be called from any thread.
void AllocatePortIdPair(int* port1, int* port2);