diff options
-rwxr-xr-x | chrome/browser/extensions/extension_message_service.cc | 2 | ||||
-rwxr-xr-x | chrome/browser/extensions/extension_message_service.h | 2 | ||||
-rw-r--r-- | chrome/browser/renderer_host/resource_message_filter.cc | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_message_service.cc b/chrome/browser/extensions/extension_message_service.cc index 7b79c9e..95143ce 100755 --- a/chrome/browser/extensions/extension_message_service.cc +++ b/chrome/browser/extensions/extension_message_service.cc @@ -103,7 +103,7 @@ int ExtensionMessageService::OpenChannelToExtension( return channel_id; } -void ExtensionMessageService::PostMessage( +void ExtensionMessageService::PostMessageToExtension( int channel_id, const std::string& message) { DCHECK(MessageLoop::current() == ChromeThread::GetMessageLoop(ChromeThread::IO)); diff --git a/chrome/browser/extensions/extension_message_service.h b/chrome/browser/extensions/extension_message_service.h index eef1676..1b4040d 100755 --- a/chrome/browser/extensions/extension_message_service.h +++ b/chrome/browser/extensions/extension_message_service.h @@ -38,7 +38,7 @@ class ExtensionMessageService { ResourceMessageFilter* renderer_port); // Sends a message to the extension via the given channel. - void PostMessage(int channel_id, const std::string& message); + void PostMessageToExtension(int channel_id, const std::string& message); // Called to let us know that a renderer is going away. void RendererShutdown(ResourceMessageFilter* renderer_port); diff --git a/chrome/browser/renderer_host/resource_message_filter.cc b/chrome/browser/renderer_host/resource_message_filter.cc index 6d1e68b..2527ac7 100644 --- a/chrome/browser/renderer_host/resource_message_filter.cc +++ b/chrome/browser/renderer_host/resource_message_filter.cc @@ -801,5 +801,6 @@ void ResourceMessageFilter::OnOpenChannelToExtension( void ResourceMessageFilter::OnExtensionPostMessage( int channel_id, const std::string& message) { - ExtensionMessageService::GetInstance()->PostMessage(channel_id, message); + ExtensionMessageService::GetInstance()->PostMessageToExtension( + channel_id, message); } |