summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp')
-rw-r--r--Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp b/Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp
index 44b5aca0a..01eb98052 100644
--- a/Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp
+++ b/Source/WebKit2/UIProcess/WebBatteryManagerProxy.cpp
@@ -29,6 +29,7 @@
#if ENABLE(BATTERY_STATUS)
#include "WebBatteryManagerMessages.h"
+#include "WebBatteryManagerProxyMessages.h"
#include "WebContext.h"
namespace WebKit {
@@ -42,7 +43,7 @@ WebBatteryManagerProxy::WebBatteryManagerProxy(WebContext* context)
: m_isUpdating(false)
, m_context(context)
{
- m_context->deprecatedAddMessageReceiver(CoreIPC::MessageClassWebBatteryManagerProxy, this);
+ m_context->addMessageReceiver(Messages::WebBatteryManagerProxy::messageReceiverName(), this);
}
WebBatteryManagerProxy::~WebBatteryManagerProxy()